mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-04 21:45:26 +02:00
- Introduced a new column `scheduleId` in the `deployment` table to link deployments with schedules. - Added a foreign key constraint on `scheduleId` referencing the `schedule` table, ensuring referential integrity. - Updated the `deployment` schema to include the new relationship with the `schedules` table. - Enhanced the `schedules` schema to establish a one-to-many relationship with deployments.
2 lines
276 B
SQL
2 lines
276 B
SQL
ALTER TABLE "deployment" ADD COLUMN "scheduleId" text;--> statement-breakpoint
|
|
ALTER TABLE "deployment" ADD CONSTRAINT "deployment_scheduleId_schedule_scheduleId_fk" FOREIGN KEY ("scheduleId") REFERENCES "public"."schedule"("scheduleId") ON DELETE cascade ON UPDATE no action; |