mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 02:03:40 +00:00
Clean up for budget limits.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user