mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Small update for 4.5.0 SQL update.
This commit is contained in:
parent
4ff5f33966
commit
0868aac750
@ -27,14 +27,14 @@ class ChangesForV450 extends Migration
|
|||||||
// add "foreign_amount" to transactions
|
// add "foreign_amount" to transactions
|
||||||
Schema::table(
|
Schema::table(
|
||||||
'transactions', function (Blueprint $table) {
|
'transactions', function (Blueprint $table) {
|
||||||
$table->decimal('foreign_amount', 22, 12)->after('amount');
|
$table->decimal('foreign_amount', 22, 12)->nullable()->after('amount');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
// add foreign transaction currency id to transactions (is nullable):
|
// add foreign transaction currency id to transactions (is nullable):
|
||||||
Schema::table(
|
Schema::table(
|
||||||
'transactions', function (Blueprint $table) {
|
'transactions', function (Blueprint $table) {
|
||||||
$table->integer('foreign_currency_id', false, true)->after('foreign_amount')->nullable();
|
$table->integer('foreign_currency_id', false, true)->default(null)->after('foreign_amount')->nullable();
|
||||||
$table->foreign('foreign_currency_id')->references('id')->on('transaction_currencies')->onDelete('set null');
|
$table->foreign('foreign_currency_id')->references('id')->on('transaction_currencies')->onDelete('set null');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user