From 64ec54bd1f6e5a8c9c073d3686a7c79bc4b28c7c Mon Sep 17 00:00:00 2001 From: Theophile Sandoz Date: Fri, 17 May 2024 15:09:14 +0200 Subject: [PATCH] Add the Prisma migration --- .../migration.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packages/server/prisma/migrations/20240517130826_proposal_discusions/migration.sql diff --git a/packages/server/prisma/migrations/20240517130826_proposal_discusions/migration.sql b/packages/server/prisma/migrations/20240517130826_proposal_discusions/migration.sql new file mode 100644 index 0000000000..9ed74fd933 --- /dev/null +++ b/packages/server/prisma/migrations/20240517130826_proposal_discusions/migration.sql @@ -0,0 +1,14 @@ +-- AlterEnum +-- This migration adds more than one value to an enum. +-- With PostgreSQL versions 11 and earlier, this is not possible +-- in a single migration. This can be worked around by creating +-- multiple migrations, each migration adding only one value to +-- the enum. + + +ALTER TYPE "NotificationKind" ADD VALUE 'PROPOSAL_DISCUSSION_MENTION'; +ALTER TYPE "NotificationKind" ADD VALUE 'PROPOSAL_DISCUSSION_REPLY'; +ALTER TYPE "NotificationKind" ADD VALUE 'PROPOSAL_DISCUSSION_CREATOR'; +ALTER TYPE "NotificationKind" ADD VALUE 'PROPOSAL_DISCUSSION_CONTRIBUTOR'; +ALTER TYPE "NotificationKind" ADD VALUE 'PROPOSAL_DISCUSSION_ALL'; +ALTER TYPE "NotificationKind" ADD VALUE 'PROPOSAL_ENTITY_DISCUSSION';