Working on notifications channels.

This commit is contained in:
charlesgauthereau
2025-11-30 12:21:21 +01:00
parent 8980e6d4a8
commit 5cf6cf075e
15 changed files with 2138 additions and 132 deletions
+4
View File
@@ -0,0 +1,4 @@
ALTER TABLE "notification_channel" ALTER COLUMN "provider" SET DATA TYPE text;--> statement-breakpoint
DROP TYPE "public"."provider_kind";--> statement-breakpoint
CREATE TYPE "public"."provider_kind" AS ENUM('slack', 'smtp');--> statement-breakpoint
ALTER TABLE "notification_channel" ALTER COLUMN "provider" SET DATA TYPE "public"."provider_kind" USING "provider"::"public"."provider_kind";
File diff suppressed because it is too large Load Diff
+7
View File
@@ -71,6 +71,13 @@
"when": 1764364481615,
"tag": "0009_lucky_edwin_jarvis",
"breakpoints": true
},
{
"idx": 10,
"version": "7",
"when": 1764497732581,
"tag": "0010_past_trauma",
"breakpoints": true
}
]
}
+1 -1
View File
@@ -6,7 +6,7 @@ import {createSelectSchema} from "drizzle-zod";
import {z} from "zod";
export const providerKindEnum = pgEnum('provider_kind', ['curl', 'slack', 'smtp', 'webhook']);
export const providerKindEnum = pgEnum('provider_kind', ['slack', 'smtp']);
export const notificationChannel = pgTable('notification_channel', {
id: uuid("id").defaultRandom().primaryKey(),