Skip to content

Commit

Permalink
Merge branch 'foreign-key-issue' into 'master'
Browse files Browse the repository at this point in the history
drop foreign issue solved

See merge request mohit.panjvani/crater-web!787
  • Loading branch information
mohitpanjwani committed Jun 24, 2021
2 parents 3d9a73f + 0e0ef1d commit 4772079
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public function up()
});

Schema::table('invoices', function (Blueprint $table) {
if (config('database.default') !== 'sqlite') {
$table->dropForeign(['invoice_template_id']);
}
$table->dropColumn('invoice_template_id');
});
}
Expand All @@ -39,6 +42,9 @@ public function up()
});

Schema::table('estimates', function (Blueprint $table) {
if (config('database.default') !== 'sqlite') {
$table->dropForeign(['estimate_template_id']);
}
$table->dropColumn('estimate_template_id');
});
}
Expand Down

0 comments on commit 4772079

Please sign in to comment.