fix: migration
This commit is contained in:
parent
93b1fa9c79
commit
cc03c780e8
@ -7,6 +7,7 @@ ALTER TABLE "comfyui_deploy"."models" DROP CONSTRAINT "checkpoints_checkpoint_vo
|
|||||||
--> statement-breakpoint
|
--> statement-breakpoint
|
||||||
ALTER TABLE "comfyui_deploy"."user_volume" DROP CONSTRAINT "checkpoint_volume_user_id_users_id_fk";
|
ALTER TABLE "comfyui_deploy"."user_volume" DROP CONSTRAINT "checkpoint_volume_user_id_users_id_fk";
|
||||||
--> statement-breakpoint
|
--> statement-breakpoint
|
||||||
|
ALTER TABLE "comfyui_deploy"."models" ALTER COLUMN "model_type" SET DEFAULT 'checkpoint';--> statement-breakpoint
|
||||||
DO $$ BEGIN
|
DO $$ BEGIN
|
||||||
ALTER TABLE "comfyui_deploy"."models" ADD CONSTRAINT "models_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "comfyui_deploy"."users"("id") ON DELETE no action ON UPDATE no action;
|
ALTER TABLE "comfyui_deploy"."models" ADD CONSTRAINT "models_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "comfyui_deploy"."users"("id") ON DELETE no action ON UPDATE no action;
|
||||||
EXCEPTION
|
EXCEPTION
|
@ -1 +0,0 @@
|
|||||||
ALTER TABLE "comfyui_deploy"."models" ALTER COLUMN "model_type" SET DEFAULT 'checkpoint';
|
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"id": "21883be1-791d-462f-94b1-a990074aefef",
|
"id": "b05a0662-d598-4ff1-b106-6020917bae69",
|
||||||
"prevId": "ca4e598d-4205-4e48-a5d2-4202d38a8b5c",
|
"prevId": "ca4e598d-4205-4e48-a5d2-4202d38a8b5c",
|
||||||
"version": "5",
|
"version": "5",
|
||||||
"dialect": "pg",
|
"dialect": "pg",
|
||||||
@ -539,7 +539,8 @@
|
|||||||
"name": "model_type",
|
"name": "model_type",
|
||||||
"type": "model_type",
|
"type": "model_type",
|
||||||
"primaryKey": false,
|
"primaryKey": false,
|
||||||
"notNull": true
|
"notNull": true,
|
||||||
|
"default": "'checkpoint'"
|
||||||
},
|
},
|
||||||
"error_log": {
|
"error_log": {
|
||||||
"name": "error_log",
|
"name": "error_log",
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -313,15 +313,8 @@
|
|||||||
{
|
{
|
||||||
"idx": 44,
|
"idx": 44,
|
||||||
"version": "5",
|
"version": "5",
|
||||||
"when": 1706230304140,
|
"when": 1706240032837,
|
||||||
"tag": "0044_married_malcolm_colcord",
|
"tag": "0044_hot_wiccan",
|
||||||
"breakpoints": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idx": 45,
|
|
||||||
"version": "5",
|
|
||||||
"when": 1706235102704,
|
|
||||||
"tag": "0045_clever_brood",
|
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user