Files
qt5-legatus-legacy/Lts/Tools/DBUpdate/updates/2.40_create_user_flt.upd
T
2026-08-13 18:33:10 +02:00

24 lines
564 B
Plaintext
Executable File

-------------------------------------------------------------------------
-- INFO: Create new DB user ets_flt and global schema flt
-- PROJECT: ALL
-- DATE: 2022-10-06
-- VERSION: 2.40
-------------------------------------------------------------------------
-- GLOBAL: PUBLIC;
BEGIN;
-- create user and schema
SELECT create_user_if_not_exists('ets_flt');
-- GRANT ets_ro TO ets_flt;
GRANT ets_flt TO ets_admin;
CREATE SCHEMA IF NOT EXISTS flt;
ALTER SCHEMA flt OWNER TO ets_flt;
GRANT ALL ON SCHEMA flt TO ets_admin;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;