From 870f6e88b106a9dc24e6be5741b0017ef0446669 Mon Sep 17 00:00:00 2001 From: diced Date: Sat, 26 Feb 2022 17:27:37 -0800 Subject: [PATCH] fix(prisma): add removal of custom theme migration --- .../migration.sql | 12 ++++++++++++ 1 file changed, 12 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 0000000..d7f58db --- /dev/null +++ b/prisma/migrations/20220227012541_removal_custom_themes/migration.sql @@ -0,0 +1,12 @@ +/* + 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"; \ No newline at end of file