mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
Readd migration
This commit is contained in:
4
packages/db/migrations/0160_mushy_viper.sql
Normal file
4
packages/db/migrations/0160_mushy_viper.sql
Normal 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");
|
||||
13090
packages/db/migrations/meta/0160_snapshot.json
Normal file
13090
packages/db/migrations/meta/0160_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user