Readd migration

This commit is contained in:
Siddharth Ganesan
2026-02-24 14:03:30 -08:00
parent 743f048442
commit 3de3ef4786
3 changed files with 13101 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
ALTER TABLE "copilot_chats" ALTER COLUMN "workflow_id" DROP NOT NULL;--> statement-breakpoint
ALTER TABLE "copilot_chats" ADD COLUMN "workspace_id" text;--> statement-breakpoint
ALTER TABLE "copilot_chats" ADD CONSTRAINT "copilot_chats_workspace_id_workspace_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspace"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "copilot_chats_user_workspace_idx" ON "copilot_chats" USING btree ("user_id","workspace_id");

File diff suppressed because it is too large Load Diff

View File

@@ -1114,6 +1114,13 @@
"when": 1771897746619,
"tag": "0159_magical_marten_broadcloak",
"breakpoints": true
},
{
"idx": 160,
"version": "7",
"when": 1771970593817,
"tag": "0160_mushy_viper",
"breakpoints": true
}
]
}