Skip to content

Commit d7e0413

Browse files
committed
feat(notification): add 'lark' notification type and create associated table; update notification schema
1 parent f4748bd commit d7e0413

File tree

3 files changed

+6694
-0
lines changed

3 files changed

+6694
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ALTER TYPE "public"."notificationType" ADD VALUE 'lark';--> statement-breakpoint
2+
CREATE TABLE "lark" (
3+
"larkId" text PRIMARY KEY NOT NULL,
4+
"webhookUrl" text NOT NULL
5+
);
6+
--> statement-breakpoint
7+
ALTER TABLE "notification" ADD COLUMN "larkId" text;--> statement-breakpoint
8+
ALTER TABLE "notification" ADD CONSTRAINT "notification_larkId_lark_larkId_fk" FOREIGN KEY ("larkId") REFERENCES "public"."lark"("larkId") ON DELETE cascade ON UPDATE no action;

0 commit comments

Comments
 (0)