19 lines
401 B
PL/PgSQL
Executable File
19 lines
401 B
PL/PgSQL
Executable File
--BEGIN;
|
|
SET SEARCH_PATH TO PUBLIC;
|
|
|
|
-- 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;
|
|
|
|
INSERT INTO db_version (description, version) VALUES ('Create new DB user ets_flt and global schema flt', '2.40');
|
|
|
|
|
|
--COMMIT;
|
|
|
|
|