mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-02-25 20:35:10 +00:00
migration
This commit is contained in:
15
apps/dokploy/drizzle/0143_cute_forge.sql
Normal file
15
apps/dokploy/drizzle/0143_cute_forge.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
CREATE TABLE "patch" (
|
||||
"patchId" text PRIMARY KEY NOT NULL,
|
||||
"filePath" text NOT NULL,
|
||||
"enabled" boolean DEFAULT true NOT NULL,
|
||||
"content" text NOT NULL,
|
||||
"createdAt" text NOT NULL,
|
||||
"updatedAt" text,
|
||||
"applicationId" text,
|
||||
"composeId" text,
|
||||
CONSTRAINT "patch_filepath_application_unique" UNIQUE("filePath","applicationId"),
|
||||
CONSTRAINT "patch_filepath_compose_unique" UNIQUE("filePath","composeId")
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "patch" ADD CONSTRAINT "patch_applicationId_application_applicationId_fk" FOREIGN KEY ("applicationId") REFERENCES "public"."application"("applicationId") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
||||
ALTER TABLE "patch" ADD CONSTRAINT "patch_composeId_compose_composeId_fk" FOREIGN KEY ("composeId") REFERENCES "public"."compose"("composeId") ON DELETE cascade ON UPDATE no action;
|
||||
7390
apps/dokploy/drizzle/meta/0143_snapshot.json
Normal file
7390
apps/dokploy/drizzle/meta/0143_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1002,6 +1002,13 @@
|
||||
"when": 1770615019498,
|
||||
"tag": "0142_outstanding_tusk",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 143,
|
||||
"version": "7",
|
||||
"when": 1770756316554,
|
||||
"tag": "0143_cute_forge",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user