File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed
ansible/files/postgresql_extension_custom_scripts/pg_cron Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change
1
+ grant usage on schema cron to postgres with grant option;
2
+ grant all on all functions in schema cron to postgres with grant option;
3
+
4
+ alter default privileges for user supabase_admin in schema cron grant all
5
+ on sequences to postgres with grant option;
6
+ alter default privileges for user supabase_admin in schema cron grant all
7
+ on tables to postgres with grant option;
8
+ alter default privileges for user supabase_admin in schema cron grant all
9
+ on functions to postgres with grant option;
10
+
11
+ grant all privileges on all tables in schema cron to postgres with grant option;
12
+ revoke all on table cron .job from postgres;
13
+ grant select on table cron .job to postgres with grant option;
Original file line number Diff line number Diff line change 1
- postgres-version = " 15.1.0.129 "
1
+ postgres-version = " 15.1.0.130-cron "
Original file line number Diff line number Diff line change
1
+ -- migrate:up
2
+ do $$
3
+ begin
4
+ if exists (select from pg_extension where extname = ' pg_cron' ) then
5
+ revoke all on table cron .job from postgres;
6
+ grant select on table cron .job to postgres with grant option;
7
+ end if;
8
+ end $$;
9
+
10
+ drop event trigger if exists issue_pg_cron_access;
11
+ drop function if exists extensions .grant_pg_cron_access ();
12
+
13
+ -- migrate:down
You can’t perform that action at this time.
0 commit comments