Spotter-VM/cts/setup/createdb.sql
2018-09-13 10:38:58 +02:00

11 lines
368 B
SQL

CREATE ROLE cts NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT LOGIN ENCRYPTED PASSWORD '${CTS_PWD}';
CREATE DATABASE cts;
REVOKE ALL ON DATABASE cts FROM public;
ALTER DATABASE cts OWNER TO cts;
\c cts;
CREATE EXTENSION hstore;
CREATE EXTENSION postgis;
GRANT ALL ON geometry_columns TO cts;
GRANT ALL ON spatial_ref_sys TO cts;
GRANT ALL ON geography_columns TO cts;