mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 22:34:31 -04:00
Fix for down migrations
This commit is contained in:
parent
ee82bf13af
commit
1f244c94d4
@ -34,8 +34,12 @@ class AddPartialAmountToInvoices extends Migration
|
|||||||
});
|
});
|
||||||
|
|
||||||
Schema::table('accounts', function ($table) {
|
Schema::table('accounts', function ($table) {
|
||||||
$table->dropColumn('utf8_invoices');
|
if (Schema::hasColumn('accounts', 'utf8_invoices')) {
|
||||||
$table->dropColumn('auto_wrap');
|
$table->dropColumn('utf8_invoices');
|
||||||
|
}
|
||||||
|
if (Schema::hasColumn('accounts', 'auto_wrap')) {
|
||||||
|
$table->dropColumn('auto_wrap');
|
||||||
|
}
|
||||||
$table->dropColumn('subdomain');
|
$table->dropColumn('subdomain');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -54,9 +54,11 @@ class SimplifyTasks extends Migration
|
|||||||
$table->integer('break_duration')->nullable();
|
$table->integer('break_duration')->nullable();
|
||||||
});
|
});
|
||||||
|
|
||||||
Schema::table('users', function ($table) {
|
if (Schema::hasColumn('accounts', 'dark_mode')) {
|
||||||
$table->dropColumn('dark_mode');
|
Schema::table('users', function ($table) {
|
||||||
});
|
$table->dropColumn('dark_mode');
|
||||||
|
});
|
||||||
|
}
|
||||||
Schema::table('users', function ($table) {
|
Schema::table('users', function ($table) {
|
||||||
$table->integer('theme_id')->nullable();
|
$table->integer('theme_id')->nullable();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user