refactor: remove yearly billing interval, keep only one_time and monthly

This commit is contained in:
DanielS
2026-05-01 02:35:22 +02:00
parent cc10352d72
commit f947798bf6
18 changed files with 390 additions and 46 deletions

View File

@@ -0,0 +1 @@
main

View File

@@ -0,0 +1 @@
v2.95.4

View File

@@ -0,0 +1,7 @@
-- Remove yearly from the billing_interval constraint, leaving only one_time and monthly
ALTER TABLE public.products DROP CONSTRAINT IF EXISTS products_billing_interval_check;
ALTER TABLE public.products ADD CONSTRAINT products_billing_interval_check
CHECK (billing_interval IN ('one_time', 'monthly'));
-- Update any existing yearly products to monthly
UPDATE public.products SET billing_interval = 'monthly' WHERE billing_interval = 'yearly';

View File

@@ -0,0 +1 @@
update auth.users set email_confirmed_at = now() where email = 'test@test.com';