Files
Jyotisha/frontend/supabase/migrations/20260903010000_profile_ayanamsa.sql
T
Jesse_Chen b6a70aa7df fix(ayanamsa): pin Lahiri on reference sets and add a user setting
Product default stays Raman. Public-case revalidation and fixture dashas now pass --ayanamsa lahiri; profiles store the four selectable values.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 16:33:46 +08:00

16 lines
398 B
PL/PgSQL

begin;
alter table public.profiles
add column if not exists ayanamsa text not null default 'raman';
alter table public.profiles
drop constraint if exists profiles_ayanamsa_check;
alter table public.profiles
add constraint profiles_ayanamsa_check
check (ayanamsa in ('raman', 'lahiri', 'kp', 'true_pushya'));
grant update (ayanamsa) on table public.profiles to authenticated;
commit;