File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,5 @@ CREATE TABLE "workspace_environment" (
66 " updated_at" timestamp DEFAULT now() NOT NULL
77);
88-- > statement-breakpoint
9- ALTER TABLE " user_stats" ALTER COLUMN " current_usage_limit" DROP NOT NULL ;-- > statement-breakpoint
10- ALTER TABLE " user_stats" ADD COLUMN " billing_blocked" boolean DEFAULT false NOT NULL ;-- > statement-breakpoint
119ALTER TABLE " workspace_environment" ADD CONSTRAINT " workspace_environment_workspace_id_workspace_id_fk" FOREIGN KEY (" workspace_id" ) REFERENCES " public" ." workspace" (" id" ) ON DELETE cascade ON UPDATE no action;-- > statement-breakpoint
12- CREATE UNIQUE INDEX "workspace_environment_workspace_unique " ON " workspace_environment" USING btree (" workspace_id" );-- > statement-breakpoint
13- CREATE INDEX "workspace_environment_workspace_id_idx " ON " workspace_environment" USING btree (" workspace_id" );
10+ CREATE UNIQUE INDEX "workspace_environment_workspace_unique " ON " workspace_environment" USING btree (" workspace_id" );
Original file line number Diff line number Diff line change @@ -350,9 +350,7 @@ export const workspaceEnvironment = pgTable(
350350 updatedAt : timestamp ( 'updated_at' ) . notNull ( ) . defaultNow ( ) ,
351351 } ,
352352 ( table ) => ( {
353- // Ensure one row per workspace
354353 workspaceUnique : uniqueIndex ( 'workspace_environment_workspace_unique' ) . on ( table . workspaceId ) ,
355- workspaceIdIdx : index ( 'workspace_environment_workspace_id_idx' ) . on ( table . workspaceId ) ,
356354 } )
357355)
358356
You can’t perform that action at this time.
0 commit comments