@@ -203,50 +203,6 @@ CREATE FUNCTION auth.uid() RETURNS uuid
203
203
$$;
204
204
205
205
206
- --
207
- -- Name: grant_pg_cron_access(); Type: FUNCTION; Schema: extensions; Owner: -
208
- --
209
-
210
- CREATE FUNCTION extensions .grant_pg_cron_access() RETURNS event_trigger
211
- LANGUAGE plpgsql
212
- AS $$
213
- BEGIN
214
- IF EXISTS (
215
- SELECT
216
- FROM pg_event_trigger_ddl_commands() AS ev
217
- JOIN pg_extension AS ext
218
- ON ev .objid = ext .oid
219
- WHERE ext .extname = ' pg_cron'
220
- )
221
- THEN
222
- grant usage on schema cron to postgres with grant option;
223
-
224
- alter default privileges in schema cron grant all on tables to postgres with grant option;
225
- alter default privileges in schema cron grant all on functions to postgres with grant option;
226
- alter default privileges in schema cron grant all on sequences to postgres with grant option;
227
-
228
- alter default privileges for user supabase_admin in schema cron grant all
229
- on sequences to postgres with grant option;
230
- alter default privileges for user supabase_admin in schema cron grant all
231
- on tables to postgres with grant option;
232
- alter default privileges for user supabase_admin in schema cron grant all
233
- on functions to postgres with grant option;
234
-
235
- grant all privileges on all tables in schema cron to postgres with grant option;
236
- revoke all on table cron .job from postgres;
237
- grant select on table cron .job to postgres with grant option;
238
- END IF;
239
- END;
240
- $$;
241
-
242
-
243
- --
244
- -- Name: FUNCTION grant_pg_cron_access(); Type: COMMENT; Schema: extensions; Owner: -
245
- --
246
-
247
- COMMENT ON FUNCTION extensions.grant_pg_cron_access() IS ' Grants access to pg_cron' ;
248
-
249
-
250
206
--
251
207
-- Name: grant_pg_graphql_access(); Type: FUNCTION; Schema: extensions; Owner: -
252
208
--
@@ -1010,15 +966,6 @@ CREATE EVENT TRIGGER issue_graphql_placeholder ON sql_drop
1010
966
EXECUTE FUNCTION extensions .set_graphql_placeholder ();
1011
967
1012
968
1013
- --
1014
- -- Name: issue_pg_cron_access; Type: EVENT TRIGGER; Schema: -; Owner: -
1015
- --
1016
-
1017
- CREATE EVENT TRIGGER issue_pg_cron_access ON ddl_command_end
1018
- WHEN TAG IN (' CREATE EXTENSION' )
1019
- EXECUTE FUNCTION extensions .grant_pg_cron_access ();
1020
-
1021
-
1022
969
--
1023
970
-- Name: issue_pg_graphql_access; Type: EVENT TRIGGER; Schema: -; Owner: -
1024
971
--
0 commit comments