Skip to content

Commit 3e19212

Browse files
authored
Add unique() constraint to asset index (#257)
1 parent 8fed315 commit 3e19212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/2024_03_07_100000_create_asset_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function up()
1919
$table->jsonb('meta')->nullable();
2020
$table->timestamps();
2121

22-
$table->index(['container', 'folder', 'basename']);
22+
$table->unique(['container', 'folder', 'basename']);
2323
});
2424
}
2525

0 commit comments

Comments
 (0)