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;