mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Ignore error. Must test more with sqlite.
This commit is contained in:
@@ -15,7 +15,11 @@ return new class () extends Migration {
|
|||||||
// make account_id nullable and the relation also nullable.
|
// make account_id nullable and the relation also nullable.
|
||||||
Schema::table('piggy_banks', static function (Blueprint $table): void {
|
Schema::table('piggy_banks', static function (Blueprint $table): void {
|
||||||
// 1. drop index
|
// 1. drop index
|
||||||
$table->dropForeign('piggy_banks_account_id_foreign');
|
try {
|
||||||
|
$table->dropForeign('piggy_banks_account_id_foreign');
|
||||||
|
} catch(RuntimeException $e) {
|
||||||
|
// do nothing.
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Schema::table('piggy_banks', static function (Blueprint $table): void {
|
Schema::table('piggy_banks', static function (Blueprint $table): void {
|
||||||
// 2. make column nullable.
|
// 2. make column nullable.
|
||||||
|
Reference in New Issue
Block a user