Skip to content

Commit 4b67322

Browse files
committed
add reference to Locations in Methods
1 parent 6a3ce27 commit 4b67322

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

database/migrations/create_shipping_table.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public function up()
1919
$table->id();
2020
$table->unsignedBigInteger('zone_id');
2121
$table->foreign('zone_id')->references('id')->on('shipping_zones_table');
22+
$table->unsignedBigInteger('location_id');
23+
$table->foreign('location_id')->references('id')->on('shipping_zone_locations_table');
2224
$table->string('method_name');
2325
$table->string('method_type');
2426
$table->bigInteger('method_value');

0 commit comments

Comments
 (0)