Skip to content

Commit a5fd59a

Browse files
committed
just skip constraint
1 parent 165f038 commit a5fd59a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

database/migrations/2025_03_28_000001_add_ruleset_id_to_tags.php

-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ public function up(): void
1616
Schema::table('tags', function (Blueprint $table) {
1717
$table->smallInteger('ruleset_id')->nullable()->unsigned()->after('name');
1818
$table->dropIndex('tags_name_unique');
19-
$table->unique(['name', 'ruleset_id'], 'tags_name_ruleset_id_unique');
2019
});
2120
}
2221

2322
public function down(): void
2423
{
2524
Schema::table('tags', function (Blueprint $table) {
26-
$table->dropIndex('tags_name_ruleset_id_unique');
2725
$table->unique('name', 'tags_name_unique');
2826
$table->dropColumn('ruleset_id');
2927
});

0 commit comments

Comments
 (0)