mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-07 20:45:17 +00:00
migration
This commit is contained in:
@@ -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;
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1002,6 +1002,13 @@
|
|||||||
"when": 1770615019498,
|
"when": 1770615019498,
|
||||||
"tag": "0142_outstanding_tusk",
|
"tag": "0142_outstanding_tusk",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 143,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1770756316554,
|
||||||
|
"tag": "0143_cute_forge",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user