Skip to content

Commit 4273161

Browse files
committed
fix 80th migration
1 parent 12135d2 commit 4273161

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

apps/sim/db/migrations/0080_left_riptide.sql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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
119
ALTER 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");

apps/sim/db/schema.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)