lasthourcloud/prisma/migrations/20220212142309_unique_secret_by_application/migration.sql
Andras Bacsai 45f920f802 fix: unique secret by application
css: redesign secret page
2022-02-12 15:23:58 +01:00

12 lines
330 B
SQL

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