From a618d289d85c80ffc20a012d2a14a7f20670d763 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Tue, 2 Sep 2025 10:38:33 -0700 Subject: [PATCH] add if not exists check --- apps/sim/db/migrations/0079_shocking_shriek.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/db/migrations/0079_shocking_shriek.sql b/apps/sim/db/migrations/0079_shocking_shriek.sql index fe259b3fc9..6ac06d13aa 100644 --- a/apps/sim/db/migrations/0079_shocking_shriek.sql +++ b/apps/sim/db/migrations/0079_shocking_shriek.sql @@ -1,5 +1,5 @@ ALTER TABLE "subscription" DROP CONSTRAINT "check_enterprise_metadata";--> statement-breakpoint -ALTER TABLE "organization" ADD COLUMN "org_usage_limit" numeric;--> statement-breakpoint +ALTER TABLE "organization" ADD COLUMN "org_usage_limit" IF NOT EXISTS numeric;--> statement-breakpoint ALTER TABLE "user_stats" ALTER COLUMN "current_usage_limit" DROP NOT NULL;--> statement-breakpoint ALTER TABLE "user_stats" ADD COLUMN IF NOT EXISTS "billing_blocked" boolean DEFAULT false;--> statement-breakpoint ALTER TABLE "user_stats" DROP COLUMN "usage_limit_set_by";--> statement-breakpoint