mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Add schedule management features
- Implemented `HandleSchedules` component for creating and updating schedules with validation. - Added `ShowSchedules` component to display a list of schedules with options to edit and delete. - Created API routes for schedule management including create, update, delete, and list functionalities. - Defined the `schedule` table schema in the database with necessary fields and relationships. - Integrated schedule management into the application service dashboard, allowing users to manage schedules directly from the UI.
This commit is contained in:
8
apps/dokploy/drizzle/0060_add_schedule_table.sql
Normal file
8
apps/dokploy/drizzle/0060_add_schedule_table.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE IF NOT EXISTS "schedule" (
|
||||
"scheduleId" text PRIMARY KEY NOT NULL,
|
||||
"name" text NOT NULL,
|
||||
"cronExpression" text NOT NULL,
|
||||
"command" text NOT NULL,
|
||||
"applicationId" text NOT NULL REFERENCES "application"("applicationId") ON DELETE CASCADE,
|
||||
"createdAt" text NOT NULL
|
||||
);
|
||||
10
apps/dokploy/drizzle/0088_worthless_surge.sql
Normal file
10
apps/dokploy/drizzle/0088_worthless_surge.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE "schedule" (
|
||||
"scheduleId" text PRIMARY KEY NOT NULL,
|
||||
"name" text NOT NULL,
|
||||
"cronExpression" text NOT NULL,
|
||||
"command" text NOT NULL,
|
||||
"applicationId" text NOT NULL,
|
||||
"createdAt" text NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "schedule" ADD CONSTRAINT "schedule_applicationId_application_applicationId_fk" FOREIGN KEY ("applicationId") REFERENCES "public"."application"("applicationId") ON DELETE cascade ON UPDATE no action;
|
||||
5470
apps/dokploy/drizzle/meta/0088_snapshot.json
Normal file
5470
apps/dokploy/drizzle/meta/0088_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -617,6 +617,13 @@
|
||||
"when": 1745723563822,
|
||||
"tag": "0087_lively_risque",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 88,
|
||||
"version": "7",
|
||||
"when": 1746177535905,
|
||||
"tag": "0088_worthless_surge",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user