Skip to content

Commit 2762062

Browse files
committed
fixup! chore(migration): [custom_fields] change available_options column to nullable
1 parent 62cfd0f commit 2762062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/2023_05_18_002949_create_custom_fields_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function up()
2525
$table->string('model_class');
2626
$table->unsignedBigInteger('contextable_id')->nullable();
2727
$table->string('contextable_type')->nullable();
28-
$table->unique(['key', 'model_class', 'contextable_type', 'contextable_id']);
28+
$table->unique(['key', 'model_class', 'contextable_type', 'contextable_id'], 'custom_fields_key_model_class_contextable_unique');
2929
$table->timestamps();
3030
});
3131
}

0 commit comments

Comments
 (0)