Files
Jyotisha/frontend/supabase/migrations/20260909010000_profile_ayanamsa_service_role_grants.sql
T
Jesse_ChenandCursor 301eae4b76
Independent Staging Quality Gate / validate (push) Successful in 9m43s
Independent Staging Quality Gate / publish (push) Successful in 2m0s
fix(account): grant service_role ayanamsa for new-user profile saves (BUG-600)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 11:01:15 +08:00

11 lines
435 B
PL/PgSQL

begin;
-- BUG-600: account PATCH uses service_role. The ayanamsa column only granted
-- UPDATE to authenticated, so the first onboarding save (which always sends
-- ayanamsa) failed with "permission denied for table profiles".
grant select (ayanamsa) on table public.profiles to service_role;
grant insert (ayanamsa) on table public.profiles to service_role;
grant update (ayanamsa) on table public.profiles to service_role;
commit;