From 45f29c7b68b767d8f28bb4cf07c966cad39ea543 Mon Sep 17 00:00:00 2001 From: diced Date: Sat, 26 Feb 2022 17:26:13 -0800 Subject: [PATCH] fix(prisma): add removal of custom theme migration --- .../migration.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 prisma/migrations/20220227012541_removal_custom_themes/migration.sql diff --git a/prisma/migrations/20220227012541_removal_custom_themes/migration.sql b/prisma/migrations/20220227012541_removal_custom_themes/migration.sql new file mode 100644 index 00000000..5759bc12 --- /dev/null +++ b/prisma/migrations/20220227012541_removal_custom_themes/migration.sql @@ -0,0 +1,14 @@ +/* + Warnings: + + - You are about to drop the `Theme` table. If the table is not empty, all the data it contains will be lost. + +*/ +-- DropForeignKey +ALTER TABLE "Theme" DROP CONSTRAINT "Theme_userId_fkey"; + +-- AlterTable +ALTER TABLE "User" ALTER COLUMN "systemTheme" SET DEFAULT E'system'; + +-- DropTable +DROP TABLE "Theme";