mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
A transaction may now have a currency. This may proof to be useful when transferring money between accounts with different currencies.
This commit is contained in:
@@ -42,13 +42,6 @@ class ChangesForV431 extends Migration
|
||||
}
|
||||
);
|
||||
|
||||
// change field "start_date" to "startdate"
|
||||
// Schema::table(
|
||||
// 'budget_limits', function (Blueprint $table) {
|
||||
// $table->renameColumn('startdate', 'start_date');
|
||||
// }
|
||||
// );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -46,6 +46,13 @@ class ChangesForV440 extends Migration
|
||||
}
|
||||
);
|
||||
}
|
||||
//
|
||||
Schema::table(
|
||||
'transactions', function (Blueprint $table) {
|
||||
$table->integer('transaction_currency_id', false, true)->after('description')->nullable();
|
||||
$table->foreign('transaction_currency_id')->references('id')->on('transaction_currencies')->onDelete('set null');
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user