File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 1
1
-- migrate:up
2
2
3
3
-- update owner for auth.uid, auth.role and auth.email functions
4
- ALTER FUNCTION auth .uid owner to supabase_auth_admin;
5
- ALTER FUNCTION auth .role owner to supabase_auth_admin;
6
- ALTER FUNCTION auth .email owner to supabase_auth_admin;
4
+ DO $$
5
+ BEGIN
6
+ ALTER FUNCTION auth .uid owner to supabase_auth_admin;
7
+ EXCEPTION WHEN OTHERS THEN
8
+ RAISE WARNING ' Error encountered when changing owner of auth.uid to supabase_auth_admin' ;
9
+ END $$;
7
10
11
+ DO $$
12
+ BEGIN
13
+ ALTER FUNCTION auth .role owner to supabase_auth_admin;
14
+ EXCEPTION WHEN OTHERS THEN
15
+ RAISE WARNING ' Error encountered when changing owner of auth.role to supabase_auth_admin' ;
16
+ END $$;
17
+
18
+ DO $$
19
+ BEGIN
20
+ ALTER FUNCTION auth .email owner to supabase_auth_admin;
21
+ EXCEPTION WHEN OTHERS THEN
22
+ RAISE WARNING ' Error encountered when changing owner of auth.email to supabase_auth_admin' ;
23
+ END $$;
8
24
-- migrate:down
You can’t perform that action at this time.
0 commit comments