Skip to content

Commit 017c338

Browse files
fix: missing index on order (#13)
1 parent a7d749c commit 017c338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/create_page_builder_blocks_table.php.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ return new class extends Migration
1212
Schema::create('page_builder_blocks', function (Blueprint $table) {
1313
$table->uuid('id')->primary();
1414
$table->string('block_type');
15-
$table->unsignedTinyInteger('order');
15+
$table->unsignedTinyInteger('order')->index();
1616
$table->morphs('page_builder_blockable', indexName: 'page_builder_blockable_index');
1717
$table->json('data')->nullable();
1818
$table->timestamps();

0 commit comments

Comments
 (0)