mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-30 11:35:22 +02:00
- Introduced a new notification type 'pushover' to the database. - Created a new table 'pushover' with relevant fields for notification management. - Updated the 'notification' table to include a foreign key reference to 'pushoverId' for enhanced notification handling. - Added corresponding snapshot and journal entries to reflect these changes.
12 lines
607 B
SQL
12 lines
607 B
SQL
ALTER TYPE "public"."notificationType" ADD VALUE 'pushover' BEFORE 'custom';--> statement-breakpoint
|
|
CREATE TABLE "pushover" (
|
|
"pushoverId" text PRIMARY KEY NOT NULL,
|
|
"userKey" text NOT NULL,
|
|
"apiToken" text NOT NULL,
|
|
"priority" integer DEFAULT 0 NOT NULL,
|
|
"retry" integer,
|
|
"expire" integer
|
|
);
|
|
--> statement-breakpoint
|
|
ALTER TABLE "notification" ADD COLUMN "pushoverId" text;--> statement-breakpoint
|
|
ALTER TABLE "notification" ADD CONSTRAINT "notification_pushoverId_pushover_pushoverId_fk" FOREIGN KEY ("pushoverId") REFERENCES "public"."pushover"("pushoverId") ON DELETE cascade ON UPDATE no action; |