mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-28 02:25:23 +02:00
- Introduced a new notification type 'resend' to the database. - Created a new table 'resend' with fields for managing resend notifications. - Updated the 'notification' table to include a foreign key reference to 'resendId'. - Added corresponding snapshot and journal entries to reflect these changes.
10 lines
542 B
SQL
10 lines
542 B
SQL
ALTER TYPE "public"."notificationType" ADD VALUE 'resend' BEFORE 'gotify';--> statement-breakpoint
|
|
CREATE TABLE "resend" (
|
|
"resendId" text PRIMARY KEY NOT NULL,
|
|
"apiKey" text NOT NULL,
|
|
"fromAddress" text NOT NULL,
|
|
"toAddress" text[] NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
ALTER TABLE "notification" ADD COLUMN "resendId" text;--> statement-breakpoint
|
|
ALTER TABLE "notification" ADD CONSTRAINT "notification_resendId_resend_resendId_fk" FOREIGN KEY ("resendId") REFERENCES "public"."resend"("resendId") ON DELETE cascade ON UPDATE no action; |