File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- ALTER TABLE " subscription" DROP CONSTRAINT " check_enterprise_metadata" ;-- > statement-breakpoint
1+ ALTER TABLE " subscription" DROP CONSTRAINT IF EXISTS " check_enterprise_metadata" ;-- > statement-breakpoint
22ALTER TABLE " organization" ADD COLUMN IF NOT EXISTS " org_usage_limit" numeric ;-- > statement-breakpoint
33ALTER TABLE " user_stats" ALTER COLUMN " current_usage_limit" DROP NOT NULL ;-- > statement-breakpoint
44ALTER TABLE " user_stats" ADD COLUMN IF NOT EXISTS " billing_blocked" boolean DEFAULT false;-- > statement-breakpoint
5- ALTER TABLE " user_stats" DROP COLUMN " usage_limit_set_by" ;-- > statement-breakpoint
6- ALTER TABLE " user_stats" DROP COLUMN " billing_period_start" ;-- > statement-breakpoint
7- ALTER TABLE " user_stats" DROP COLUMN " billing_period_end" ;-- > statement-breakpoint
5+ ALTER TABLE " user_stats" DROP COLUMN IF EXISTS " usage_limit_set_by" ;-- > statement-breakpoint
6+ ALTER TABLE " user_stats" DROP COLUMN IF EXISTS " billing_period_start" ;-- > statement-breakpoint
7+ ALTER TABLE " user_stats" DROP COLUMN IF EXISTS " billing_period_end" ;-- > statement-breakpoint
88ALTER TABLE " subscription" ADD CONSTRAINT " check_enterprise_metadata" CHECK (plan != ' enterprise' OR metadata IS NOT NULL );
You can’t perform that action at this time.
0 commit comments