2021-11-25 10:24:31 +13:00
|
|
|
CREATE DATABASE righttree;
|
2023-02-08 14:24:48 +13:00
|
|
|
CREATE USER righttree;
|
|
|
|
ALTER USER righttree WITH PASSWORD 'righttree';
|
2021-10-06 14:37:14 +13:00
|
|
|
|
2021-11-25 10:24:31 +13:00
|
|
|
\c righttree
|
2021-10-06 14:37:14 +13:00
|
|
|
CREATE EXTENSION IF NOT EXISTS postgis;
|
|
|
|
GRANT ALL ON geometry_columns TO PUBLIC;
|
|
|
|
GRANT ALL ON spatial_ref_sys TO PUBLIC;
|
2023-02-08 14:24:48 +13:00
|
|
|
|
2023-02-21 16:43:46 +13:00
|
|
|
CREATE SCHEMA IF NOT EXISTS linz;
|
|
|
|
ALTER SCHEMA linz OWNER TO righttree;
|
|
|
|
GRANT ALL PRIVILEGES ON SCHEMA linz TO righttree;
|
|
|
|
|
2023-02-08 14:24:48 +13:00
|
|
|
ALTER DATABASE righttree OWNER TO righttree;
|
|
|
|
GRANT ALL PRIVILEGES ON DATABASE righttree TO righttree;
|