diff options
| author | MohamedBassem <me@mbassem.com> | 2024-02-14 01:14:42 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-02-14 01:14:42 +0000 |
| commit | 580b842f7835a3d1fa171afdc7e0b52cc3f9dfc6 (patch) | |
| tree | a33738be581d11a785e82541ffcb304b7757e292 /packages/db/prisma/migrations | |
| parent | dde49dd60e00653960223b8dcea3488b7845d43b (diff) | |
| download | karakeep-580b842f7835a3d1fa171afdc7e0b52cc3f9dfc6.tar.zst | |
fix: Fix the uniquness constraint on tag name
Diffstat (limited to 'packages/db/prisma/migrations')
| -rw-r--r-- | packages/db/prisma/migrations/20240214011350_fix_tag_name_index/migration.sql | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/db/prisma/migrations/20240214011350_fix_tag_name_index/migration.sql b/packages/db/prisma/migrations/20240214011350_fix_tag_name_index/migration.sql new file mode 100644 index 00000000..cbcd8821 --- /dev/null +++ b/packages/db/prisma/migrations/20240214011350_fix_tag_name_index/migration.sql @@ -0,0 +1,11 @@ +/* + Warnings: + + - A unique constraint covering the columns `[userId,name]` on the table `BookmarkTags` will be added. If there are existing duplicate values, this will fail. + +*/ +-- DropIndex +DROP INDEX "BookmarkTags_name_key"; + +-- CreateIndex +CREATE UNIQUE INDEX "BookmarkTags_userId_name_key" ON "BookmarkTags"("userId", "name"); |
