mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-09 07:55:25 +02:00
- Introduced a new SQL file to alter the notificationType and create a Mattermost table. - Added a foreign key relationship between the notification table and the new Mattermost table. - Updated the journal and snapshot metadata to reflect these changes.
10 lines
563 B
SQL
10 lines
563 B
SQL
ALTER TYPE "public"."notificationType" ADD VALUE 'mattermost' BEFORE 'pushover';--> statement-breakpoint
|
|
CREATE TABLE "mattermost" (
|
|
"mattermostId" text PRIMARY KEY NOT NULL,
|
|
"webhookUrl" text NOT NULL,
|
|
"channel" text,
|
|
"username" text
|
|
);
|
|
--> statement-breakpoint
|
|
ALTER TABLE "notification" ADD COLUMN "mattermostId" text;--> statement-breakpoint
|
|
ALTER TABLE "notification" ADD CONSTRAINT "notification_mattermostId_mattermost_mattermostId_fk" FOREIGN KEY ("mattermostId") REFERENCES "public"."mattermost"("mattermostId") ON DELETE cascade ON UPDATE no action; |