From a52d5bc5827e66dcecf0330e0d166645f5f156e6 Mon Sep 17 00:00:00 2001 From: jayvirsinh_gohil Date: Tue, 22 Jun 2021 18:44:02 +0530 Subject: [PATCH] solve drop foreign issue on sqlite --- ...450_remove_template_id_from_invoices_and_estimates_table.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/database/migrations/2020_12_14_051450_remove_template_id_from_invoices_and_estimates_table.php b/database/migrations/2020_12_14_051450_remove_template_id_from_invoices_and_estimates_table.php index 5fe0184b..6802b30f 100644 --- a/database/migrations/2020_12_14_051450_remove_template_id_from_invoices_and_estimates_table.php +++ b/database/migrations/2020_12_14_051450_remove_template_id_from_invoices_and_estimates_table.php @@ -25,7 +25,6 @@ class RemoveTemplateIdFromInvoicesAndEstimatesTable extends Migration }); Schema::table('invoices', function (Blueprint $table) { - $table->dropForeign(['invoice_template_id']); $table->dropColumn('invoice_template_id'); }); } @@ -40,7 +39,6 @@ class RemoveTemplateIdFromInvoicesAndEstimatesTable extends Migration }); Schema::table('estimates', function (Blueprint $table) { - $table->dropForeign(['estimate_template_id']); $table->dropColumn('estimate_template_id'); }); }