fix: ferretdb set schedma owner (#220)

undefined
This commit is contained in:
Andrei Kvapil
2024-07-17 12:48:43 +02:00
committed by GitHub
parent 5261145b2d
commit bbd2ca81a3

View File

@@ -74,9 +74,6 @@ stringData:
obj record;
BEGIN
FOR obj IN SELECT * FROM pg_event_trigger_ddl_commands() WHERE command_tag = 'CREATE SCHEMA' LOOP
EXECUTE format('ALTER SCHEMA %I OWNER TO %I', obj.object_identity, 'app_admin');
EXECUTE format('GRANT ALL ON SCHEMA %I TO %I', obj.object_identity, 'app_admin');
-- Set owner for schema
EXECUTE format('ALTER SCHEMA %I OWNER TO %I', obj.object_identity, 'app_admin');