Files
sign/packages/prisma/migrations/20230505085908_update_unique_constraint/migration.sql

12 lines
340 B
MySQL
Raw Normal View History

/*
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");