Skip to content

Commit 08f2a49

Browse files
author
Alexander Dadyka
committed
Refactor: create_orders_table migration
1 parent eeeb3ec commit 08f2a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/2023_01_27_174035_create_orders_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function up(): void
2121
Schema::create(Order::TABLE_NAME, function (Blueprint $table) use ($helper) {
2222
$table->id()->from(self::AUTO_INCREMENT_ID_START);
2323
$table->foreignId(OrderColumn::AgencyId->value)
24-
->index('orders_agency_id_foreign')
24+
->index(Order::TABLE_NAME . '_' . OrderColumn::AgencyId->value . '_foreign')
2525
->constrained(Agency::TABLE_NAME)
2626
->onUpdate('cascade')
2727
->onDelete('cascade');

0 commit comments

Comments
 (0)