fix: grant service role profile upserts

This commit is contained in:
732642856
2026-07-18 13:03:23 +08:00
parent 9c4673d9f1
commit d127975290
@@ -0,0 +1,53 @@
begin;
grant select, insert, update on table public.profiles to service_role;
grant select (
id,
email,
credits,
created_at,
updated_at,
name,
birth_date,
birth_time,
country_code,
province_code,
city_code,
district_code,
latitude,
longitude,
timezone_offset
) on public.profiles to service_role;
grant insert (
id,
email,
name,
birth_date,
birth_time,
country_code,
province_code,
city_code,
district_code,
latitude,
longitude,
timezone_offset,
updated_at
) on public.profiles to service_role;
grant update (
name,
birth_date,
birth_time,
country_code,
province_code,
city_code,
district_code,
latitude,
longitude,
timezone_offset,
updated_at
) on public.profiles to service_role;
commit;