OTA Updates for adnroid app and web apk uploader
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
-- Grant appropriate privileges on app_versions so authenticated users
|
||||
-- can perform writes permitted by RLS policies and anonymous users can read.
|
||||
|
||||
-- Grant read access to anonymous (public) clients
|
||||
GRANT SELECT ON public.app_versions TO anon;
|
||||
|
||||
-- Grant write privileges to authenticated role (RLS still applies)
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON public.app_versions TO authenticated;
|
||||
|
||||
-- Notes:
|
||||
-- - Run this with a service_role or a superuser in the SQL editor.
|
||||
-- - RLS policies still control which authenticated users may actually write.
|
||||
Reference in New Issue
Block a user