From 1f2a317ac2ee7f4029a9e55b85ea6d440158d1be Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Tue, 2 Sep 2025 10:39:53 -0700 Subject: [PATCH] fix 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 6ac06d13aa..58e63c4781 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" IF NOT EXISTS numeric;--> statement-breakpoint +ALTER TABLE "organization" ADD COLUMN IF NOT EXISTS "org_usage_limit" 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