mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: add rollback functionality with new table and application schema updates
- Created a new "rollback" table to manage rollback operations. - Added "rollbackActive" and "limitRollback" columns to the "application" table to support rollback features. - Established foreign key constraints between the "rollback" and "application" tables for data integrity.
This commit is contained in:
12
apps/dokploy/drizzle/0093_yielding_typhoid_mary.sql
Normal file
12
apps/dokploy/drizzle/0093_yielding_typhoid_mary.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE "rollback" (
|
||||
"rollbackId" text PRIMARY KEY NOT NULL,
|
||||
"env" text,
|
||||
"applicationId" text NOT NULL,
|
||||
"version" serial NOT NULL,
|
||||
"image" text,
|
||||
"createdAt" text NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "application" ADD COLUMN "rollbackActive" boolean DEFAULT false;--> statement-breakpoint
|
||||
ALTER TABLE "application" ADD COLUMN "limitRollback" integer DEFAULT 5;--> statement-breakpoint
|
||||
ALTER TABLE "rollback" ADD CONSTRAINT "rollback_applicationId_application_applicationId_fk" FOREIGN KEY ("applicationId") REFERENCES "public"."application"("applicationId") ON DELETE cascade ON UPDATE no action;
|
||||
5794
apps/dokploy/drizzle/meta/0093_snapshot.json
Normal file
5794
apps/dokploy/drizzle/meta/0093_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -652,6 +652,13 @@
|
||||
"when": 1747713229160,
|
||||
"tag": "0092_stiff_the_watchers",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 93,
|
||||
"version": "7",
|
||||
"when": 1748828655755,
|
||||
"tag": "0093_yielding_typhoid_mary",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user