We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58d4877 commit 036865fCopy full SHA for 036865f
1 file changed
src/backend/src/prisma/migrations/20260416232819_move_send_slack_notifs_to_event/migration.sql
@@ -1,5 +1,12 @@
1
-- AlterTable
2
ALTER TABLE "Event" ADD COLUMN "sendSlackNotifications" BOOLEAN NOT NULL DEFAULT false;
3
4
+-- Backfill Event.sendSlackNotifications from Event_Type before dropping the old column
5
+UPDATE "Event" e
6
+SET "sendSlackNotifications" = true
7
+FROM "Event_Type" et
8
+WHERE e."eventTypeId" = et."eventTypeId"
9
+AND et."sendSlackNotifications" = true;
10
+
11
12
ALTER TABLE "Event_Type" DROP COLUMN "sendSlackNotifications";
0 commit comments