Skip to content

Commit fdd81d4

Browse files
committed
regen migration
1 parent 9ca6e01 commit fdd81d4

3 files changed

Lines changed: 14873 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CREATE TYPE "public"."workspace_mode" AS ENUM('personal', 'organization', 'grandfathered_shared');--> statement-breakpoint
2+
ALTER TABLE "workspace" ADD COLUMN "organization_id" text;--> statement-breakpoint
3+
ALTER TABLE "workspace" ADD COLUMN "workspace_mode" "workspace_mode" DEFAULT 'grandfathered_shared' NOT NULL;--> statement-breakpoint
4+
ALTER TABLE "workspace" ADD CONSTRAINT "workspace_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
5+
CREATE INDEX "workspace_owner_id_idx" ON "workspace" USING btree ("owner_id");--> statement-breakpoint
6+
CREATE INDEX "workspace_organization_id_idx" ON "workspace" USING btree ("organization_id");--> statement-breakpoint
7+
CREATE INDEX "workspace_mode_idx" ON "workspace" USING btree ("workspace_mode");

0 commit comments

Comments
 (0)