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:
James Cole
2017-04-13 21:29:21 +02:00
parent 5fb6ff230b
commit bac7a73555
2 changed files with 7 additions and 7 deletions

View File

@@ -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');
// }
// );
}
/**

View File

@@ -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');
}
);
}
}