24 lines
564 B
Plaintext
Executable File
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;
|