spine-framework 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1278,3 +1278,20 @@ BEGIN
|
|
|
1278
1278
|
ORDER BY e.embedding <=> p_query_embedding LIMIT p_limit;
|
|
1279
1279
|
END;
|
|
1280
1280
|
$$;
|
|
1281
|
+
|
|
1282
|
+
-- ---------------------------------------------------------------------------
|
|
1283
|
+
-- Role Grants
|
|
1284
|
+
-- Raw SQL migrations bypass Supabase's automatic grant setup. These grants
|
|
1285
|
+
-- are required for the PostgREST API to function with anon/service_role keys.
|
|
1286
|
+
-- ---------------------------------------------------------------------------
|
|
1287
|
+
GRANT USAGE ON SCHEMA public TO anon, authenticated, service_role;
|
|
1288
|
+
GRANT ALL ON ALL TABLES IN SCHEMA public TO service_role;
|
|
1289
|
+
GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO service_role;
|
|
1290
|
+
GRANT ALL ON ALL FUNCTIONS IN SCHEMA public TO service_role;
|
|
1291
|
+
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO authenticated;
|
|
1292
|
+
GRANT SELECT ON ALL TABLES IN SCHEMA public TO anon;
|
|
1293
|
+
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON TABLES TO service_role;
|
|
1294
|
+
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT, INSERT, UPDATE, DELETE ON TABLES TO authenticated;
|
|
1295
|
+
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO anon;
|
|
1296
|
+
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON SEQUENCES TO service_role, authenticated;
|
|
1297
|
+
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON FUNCTIONS TO service_role, authenticated;
|