Changed labels to be unique on the same instance

This commit is contained in:
Judson Cairo
2024-08-12 21:35:31 -03:00
parent dbb6ea9147
commit 48febec36a
3 changed files with 32 additions and 10 deletions

View File

@@ -0,0 +1,11 @@
/*
Warnings:
- A unique constraint covering the columns `[labelId,instanceId]` on the table `Label` will be added. If there are existing duplicate values, this will fail.
*/
-- DropIndex
DROP INDEX "Label_labelId_key";
-- CreateIndex
CREATE UNIQUE INDEX "Label_labelId_instanceId_key" ON "Label"("labelId", "instanceId");