mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for migration
This commit is contained in:
parent
d37e513f9f
commit
4a272f036a
@ -43,6 +43,7 @@ class AddSlackNotifications extends Migration
|
||||
$table->foreign('client_id')->references('id')->on('clients')->onDelete('cascade');
|
||||
});
|
||||
|
||||
try {
|
||||
Schema::table('companies', function ($table) {
|
||||
$table->dropForeign('companies_payment_id_foreign');
|
||||
});
|
||||
@ -66,6 +67,9 @@ class AddSlackNotifications extends Migration
|
||||
$table->index('user_id4');
|
||||
$table->index('user_id5');
|
||||
});
|
||||
} catch (Exception $exception) {
|
||||
// do nothing, change only needed for invoiceninja servers
|
||||
}
|
||||
|
||||
Schema::table('jobs', function (Blueprint $table) {
|
||||
$table->dropIndex('jobs_queue_reserved_reserved_at_index');
|
||||
|
Loading…
x
Reference in New Issue
Block a user