Skip to content

Commit 44130a1

Browse files
committed
Index added to migration
1 parent 713a510 commit 44130a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

database/migrations/2020_07_03_155026_create_polymorphic_entity_attribute_values_table.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public function up()
2727
$table->unsignedInteger('entity_attribute_id');
2828
$table->string('value')->nullable();
2929
$table->timestamps();
30+
31+
$table->index(['attributable_id', 'attributable_type']);
3032
});
3133
}
3234

0 commit comments

Comments
 (0)