Skip to content

Commit 78af4c2

Browse files
fix(schema): shorten value index names
1 parent b438b24 commit 78af4c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

database/migrations/2026_01_01_000001_create_laravel_custom_field_values_table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ public function up(): void
4242
$table->json('value_json')->nullable();
4343
$table->timestamps();
4444

45-
$table->unique(['custom_field_id', 'valuable_type', 'valuable_id']);
46-
$table->index(['custom_field_id', 'value_string']);
47-
$table->index(['custom_field_id', 'value_boolean']);
45+
$table->unique(['custom_field_id', 'valuable_type', 'valuable_id'], 'cfv_field_valuable_unique');
46+
$table->index(['custom_field_id', 'value_string'], 'cfv_field_string_index');
47+
$table->index(['custom_field_id', 'value_boolean'], 'cfv_field_boolean_index');
4848
});
4949
}
5050

0 commit comments

Comments
 (0)