mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-31 01:02:16 +00: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:
@@ -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;
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1079,6 +1079,13 @@
|
|||||||
"when": 1774322599182,
|
"when": 1774322599182,
|
||||||
"tag": "0153_motionless_mastermind",
|
"tag": "0153_motionless_mastermind",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 154,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1774337356154,
|
||||||
|
"tag": "0154_careful_eternals",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user