add if not exists check

This commit is contained in:
Vikhyath Mondreti
2025-09-02 10:38:33 -07:00
parent 461d7b2342
commit a618d289d8

View File

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