Add migration for unique index in contacts

This commit is contained in:
Judson Cairo 2024-08-11 15:33:46 -03:00
parent 54e47c09c4
commit 93cc25b513

View File

@ -0,0 +1,8 @@
/*
Warnings:
- A unique constraint covering the columns `[remoteJid,instanceId]` on the table `Contact` will be added. If there are existing duplicate values, this will fail.
*/
-- CreateIndex
CREATE UNIQUE INDEX "Contact_remoteJid_instanceId_key" ON "Contact"("remoteJid", "instanceId");