Skip to content

Commit ca8fd6e

Browse files
committed
create parent for locations
1 parent 7e7ef11 commit ca8fd6e

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
@@ -30,6 +30,8 @@ public function up()
3030

3131
Schema::create('shipping_zone_locations_table', function (Blueprint $table) {
3232
$table->id();
33+
$table->unsignedBigInteger('parent')->nullable();
34+
$table->foreign('parent')->references('id')->on('shipping_zone_locations_table');
3335
$table->unsignedBigInteger('zone_id');
3436
$table->foreign('zone_id')->references('id')->on('shipping_zones_table');
3537
$table->string('location_code');

0 commit comments

Comments
 (0)