mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
Merge branch 'foreign-key-issue' into 'master'
drop foreign issue solved See merge request mohit.panjvani/crater-web!787
This commit is contained in:
@ -25,6 +25,9 @@ class RemoveTemplateIdFromInvoicesAndEstimatesTable extends Migration
|
|||||||
});
|
});
|
||||||
|
|
||||||
Schema::table('invoices', function (Blueprint $table) {
|
Schema::table('invoices', function (Blueprint $table) {
|
||||||
|
if (config('database.default') !== 'sqlite') {
|
||||||
|
$table->dropForeign(['invoice_template_id']);
|
||||||
|
}
|
||||||
$table->dropColumn('invoice_template_id');
|
$table->dropColumn('invoice_template_id');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -39,6 +42,9 @@ class RemoveTemplateIdFromInvoicesAndEstimatesTable extends Migration
|
|||||||
});
|
});
|
||||||
|
|
||||||
Schema::table('estimates', function (Blueprint $table) {
|
Schema::table('estimates', function (Blueprint $table) {
|
||||||
|
if (config('database.default') !== 'sqlite') {
|
||||||
|
$table->dropForeign(['estimate_template_id']);
|
||||||
|
}
|
||||||
$table->dropColumn('estimate_template_id');
|
$table->dropColumn('estimate_template_id');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user