mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Added something fancy called "virtual balance".
This commit is contained in:
@@ -32,6 +32,7 @@ class ChangesForV336 extends Migration
|
||||
Schema::table(
|
||||
'accounts', function (Blueprint $table) {
|
||||
$table->string('name', 255)->change();
|
||||
$table->dropColumn('virtual_balance');
|
||||
|
||||
// recreate foreign key
|
||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
@@ -94,6 +95,7 @@ class ChangesForV336 extends Migration
|
||||
Schema::table(
|
||||
'accounts', function (Blueprint $table) {
|
||||
$table->text('name')->change();
|
||||
$table->decimal('virtual_balance',10,2)->default(0);
|
||||
$table->foreign('user_id', 'account_user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user