lasthourcloud/apps/api/prisma/migrations/20221026115123_service_persistent_unique/migration.sql

12 lines
439 B
MySQL
Raw Normal View History

2022-10-26 12:12:27 +00:00
/*
Warnings:
- A unique constraint covering the columns `[serviceId,containerId,path]` on the table `ServicePersistentStorage` will be added. If there are existing duplicate values, this will fail.
*/
-- DropIndex
DROP INDEX "ServicePersistentStorage_serviceId_path_key";
-- CreateIndex
CREATE UNIQUE INDEX "ServicePersistentStorage_serviceId_containerId_path_key" ON "ServicePersistentStorage"("serviceId", "containerId", "path");