mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Enhance schedule management with new fields and improved components
- Introduced new fields in the schedule schema: `serviceName`, `scheduleType`, and `script`, allowing for more flexible schedule configurations. - Updated the `HandleSchedules` component to incorporate the new fields, enhancing user input options for schedule creation and updates. - Refactored the `ShowSchedules` component to support the new `scheduleType` and display relevant information based on the selected type. - Improved API handling for schedule creation and updates to accommodate the new fields, ensuring proper validation and error handling. - Added a new `ShowSchedulesModal` component for better integration of schedule viewing in server settings, enhancing user experience.
This commit is contained in:
8
apps/dokploy/drizzle/0093_abnormal_machine_man.sql
Normal file
8
apps/dokploy/drizzle/0093_abnormal_machine_man.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
CREATE TYPE "public"."scheduleType" AS ENUM('application', 'compose', 'server');--> statement-breakpoint
|
||||
ALTER TABLE "schedule" ALTER COLUMN "applicationId" DROP NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "schedule" ADD COLUMN "serviceName" text;--> statement-breakpoint
|
||||
ALTER TABLE "schedule" ADD COLUMN "scheduleType" "scheduleType" DEFAULT 'application' NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "schedule" ADD COLUMN "composeId" text;--> statement-breakpoint
|
||||
ALTER TABLE "schedule" ADD COLUMN "serverId" text;--> statement-breakpoint
|
||||
ALTER TABLE "schedule" ADD CONSTRAINT "schedule_composeId_compose_composeId_fk" FOREIGN KEY ("composeId") REFERENCES "public"."compose"("composeId") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
||||
ALTER TABLE "schedule" ADD CONSTRAINT "schedule_serverId_server_serverId_fk" FOREIGN KEY ("serverId") REFERENCES "public"."server"("serverId") ON DELETE cascade ON UPDATE no action;
|
||||
1
apps/dokploy/drizzle/0094_easy_butterfly.sql
Normal file
1
apps/dokploy/drizzle/0094_easy_butterfly.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "schedule" ADD COLUMN "script" text;
|
||||
3
apps/dokploy/drizzle/0095_friendly_cobalt_man.sql
Normal file
3
apps/dokploy/drizzle/0095_friendly_cobalt_man.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TYPE "public"."scheduleType" ADD VALUE 'dokploy-server';--> statement-breakpoint
|
||||
ALTER TABLE "schedule" ADD COLUMN "userId" text;--> statement-breakpoint
|
||||
ALTER TABLE "schedule" ADD CONSTRAINT "schedule_userId_user_temp_id_fk" FOREIGN KEY ("userId") REFERENCES "public"."user_temp"("id") ON DELETE cascade ON UPDATE no action;
|
||||
5579
apps/dokploy/drizzle/meta/0093_snapshot.json
Normal file
5579
apps/dokploy/drizzle/meta/0093_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
5585
apps/dokploy/drizzle/meta/0094_snapshot.json
Normal file
5585
apps/dokploy/drizzle/meta/0094_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
5605
apps/dokploy/drizzle/meta/0095_snapshot.json
Normal file
5605
apps/dokploy/drizzle/meta/0095_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -652,6 +652,27 @@
|
||||
"when": 1746221961240,
|
||||
"tag": "0092_safe_scarlet_witch",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 93,
|
||||
"version": "7",
|
||||
"when": 1746228754403,
|
||||
"tag": "0093_abnormal_machine_man",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 94,
|
||||
"version": "7",
|
||||
"when": 1746228771046,
|
||||
"tag": "0094_easy_butterfly",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 95,
|
||||
"version": "7",
|
||||
"when": 1746232483345,
|
||||
"tag": "0095_friendly_cobalt_man",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user