Files
documenso/packages/prisma/migrations/20230505085908_update_unique_constraint/migration.sql
2023-05-05 19:29:42 +10:00

12 lines
340 B
SQL

/*
Warnings:
- A unique constraint covering the columns `[customerId]` on the table `Subscription` will be added. If there are existing duplicate values, this will fail.
*/
-- DropIndex
DROP INDEX "Subscription_planId_customerId_key";
-- CreateIndex
CREATE UNIQUE INDEX "Subscription_customerId_key" ON "Subscription"("customerId");