mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-20 14:45:42 +02:00
- Introduced a new notification type 'ntfy' to the public.notificationType enum. - Created a new table 'ntfy' with fields for notification ID, server URL, topic, access token, and priority. - Updated the existing 'notification' table to include a foreign key reference to the new 'ntfy' table.
11 lines
543 B
SQL
11 lines
543 B
SQL
ALTER TYPE "public"."notificationType" ADD VALUE 'ntfy';--> statement-breakpoint
|
|
CREATE TABLE "ntfy" (
|
|
"ntfyId" text PRIMARY KEY NOT NULL,
|
|
"serverUrl" text NOT NULL,
|
|
"topic" text NOT NULL,
|
|
"accessToken" text NOT NULL,
|
|
"priority" integer DEFAULT 3 NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
ALTER TABLE "notification" ADD COLUMN "ntfyId" text;--> statement-breakpoint
|
|
ALTER TABLE "notification" ADD CONSTRAINT "notification_ntfyId_ntfy_ntfyId_fk" FOREIGN KEY ("ntfyId") REFERENCES "public"."ntfy"("ntfyId") ON DELETE cascade ON UPDATE no action; |