Clean up for budget limits.

This commit is contained in:
James Cole
2015-04-03 19:39:36 +02:00
parent 0faef542c1
commit 35cdbec70a
4 changed files with 53 additions and 1 deletions

View File

@@ -68,6 +68,13 @@ class ChangesForV336 extends Migration
}
);
// remove a long forgotten index:
Schema::table(
'budget_limits', function (Blueprint $table) {
$table->dropUnique('unique_limit');
}
);
}
/**
@@ -95,7 +102,7 @@ class ChangesForV336 extends Migration
Schema::table(
'accounts', function (Blueprint $table) {
$table->text('name')->change();
$table->decimal('virtual_balance',10,2)->default(0);
$table->decimal('virtual_balance', 10, 2)->default(0);
$table->foreign('user_id', 'account_user_id')->references('id')->on('users')->onDelete('cascade');
}
);
@@ -124,6 +131,13 @@ class ChangesForV336 extends Migration
}
);
// reinstate a long forgotten index:
Schema::table(
'budget_limits', function (Blueprint $table) {
$table->unique(['budget_id', 'startdate'],'unique_limit');
}
);
/**
* BILLS