fix if not exists check

This commit is contained in:
Vikhyath Mondreti
2025-09-02 10:39:53 -07:00
parent a618d289d8
commit 1f2a317ac2

View File

@@ -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