mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Make column nullable so migration does not fail.
This commit is contained in:
@@ -23,7 +23,8 @@ return new class () extends Migration {
|
|||||||
});
|
});
|
||||||
Schema::table('piggy_banks', static function (Blueprint $table): void {
|
Schema::table('piggy_banks', static function (Blueprint $table): void {
|
||||||
// 3. add currency
|
// 3. add currency
|
||||||
$table->integer('transaction_currency_id', false, true)->after('account_id');
|
|
||||||
|
$table->integer('transaction_currency_id', false, true)->after('account_id')->nullable();
|
||||||
$table->foreign('transaction_currency_id', 'unique_currency')->references('id')->on('transaction_currencies')->onDelete('cascade');
|
$table->foreign('transaction_currency_id', 'unique_currency')->references('id')->on('transaction_currencies')->onDelete('cascade');
|
||||||
});
|
});
|
||||||
Schema::table('piggy_banks', static function (Blueprint $table): void {
|
Schema::table('piggy_banks', static function (Blueprint $table): void {
|
||||||
|
Reference in New Issue
Block a user