mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
drop foreign issue solved
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