mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
feat(database): add Mattermost notification support
- 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.
This commit is contained in:
10
apps/dokploy/drizzle/0154_careful_eternals.sql
Normal file
10
apps/dokploy/drizzle/0154_careful_eternals.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
8237
apps/dokploy/drizzle/meta/0154_snapshot.json
Normal file
8237
apps/dokploy/drizzle/meta/0154_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1079,6 +1079,13 @@
|
||||
"when": 1774322599182,
|
||||
"tag": "0153_motionless_mastermind",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 154,
|
||||
"version": "7",
|
||||
"when": 1774337356154,
|
||||
"tag": "0154_careful_eternals",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user