--up
ALTER TABLE plans ADD COLUMN price_id_env_var text NOT NULL DEFAULT 'STRIPE_PRO_SUBSCRIPTION_PRICE_ID';
UPDATE plans SET price_id_env_var = 'STRIPE_INDIE_SUBSCRIPTION_PRICE_ID' WHERE name = 'Indie';

ALTER TABLE plans ADD COLUMN trial_days integer NOT NULL DEFAULT 0;
UPDATE plans SET trial_days = 14 WHERE is_trial = true;

--down
ALTER TABLE plans DROP COLUMN price_id_env_var;
ALTER TABLE plans DROP COLUMN trial_days;

