Skip to content

Commit c7ec358

Browse files
Update 2025_03_07_130546_create_tag_translations.php
1 parent 2b81773 commit c7ec358

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/migrations/2025_03_07_130546_create_tag_translations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ public function up(): void
2020
$table->text('content')->nullable();
2121

2222
// Ensure slug is unique per locale
23-
$table->unique(['slug', 'locale'], 'unique_slug_per_locale');
23+
$table->unique(['slug', 'locale']);
2424

2525
// Ensure one translation per locale per tag
26-
$table->unique(['tag_id', 'locale'], 'unique_translation_per_locale');
26+
$table->unique(['tag_id', 'locale']);
2727

2828
// Foreign key constraint
2929
$table->foreign('tag_id')

0 commit comments

Comments
 (0)