We cannot entirely drop the foreign key constraint, since it is originally created (and dropped) in v3.2.1.

This commit is contained in:
Niek van der Kooy 2015-03-10 18:25:23 +01:00
parent ff1bed97b8
commit 12d652bd0e

View File

@ -59,11 +59,12 @@ class ChangesForV322 extends Migration
}
);
// drop foreign key from budget_limits:
// drop unique constraint from budget_limits:
Schema::table(
'budget_limits', function (Blueprint $table) {
$table->dropForeign('bid_foreign');
$table->dropUnique('unique_bl_combi');
$table->foreign('budget_id', 'bid_foreign')->references('id')->on('budgets')->onDelete('cascade');
}
);