Skip to content

Commit

Permalink
Foreign key fix for MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Oct 18, 2023
1 parent 3f36252 commit 2aa5581
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
public function up(): void
{
Schema::table('customers', function (Blueprint $table) {
$table->unsignedBigInteger('default_billing_address_id')->nullable();
$table->unsignedBigInteger('default_shipping_address_id')->nullable();
$table->unsignedInteger('default_billing_address_id')->nullable();
$table->unsignedInteger('default_shipping_address_id')->nullable();

$table->foreign('default_billing_address_id')->references('id')->on('addresses')->nullOnDelete();
$table->foreign('default_shipping_address_id')->references('id')->on('addresses')->nullOnDelete();
Expand Down

0 comments on commit 2aa5581

Please sign in to comment.