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

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;