Skip to content

Commit a618d28

Browse files
committed
add if not exists check
1 parent 461d7b2 commit a618d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/db/migrations/0079_shocking_shriek.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ALTER TABLE "subscription" DROP CONSTRAINT "check_enterprise_metadata";--> statement-breakpoint
2-
ALTER TABLE "organization" ADD COLUMN "org_usage_limit" numeric;--> statement-breakpoint
2+
ALTER TABLE "organization" ADD COLUMN "org_usage_limit" IF NOT EXISTS numeric;--> statement-breakpoint
33
ALTER TABLE "user_stats" ALTER COLUMN "current_usage_limit" DROP NOT NULL;--> statement-breakpoint
44
ALTER TABLE "user_stats" ADD COLUMN IF NOT EXISTS "billing_blocked" boolean DEFAULT false;--> statement-breakpoint
55
ALTER TABLE "user_stats" DROP COLUMN "usage_limit_set_by";--> statement-breakpoint

0 commit comments

Comments
 (0)