Spotter-VM/cts/createdb.sql

11 lines
368 B
MySQL
Raw Permalink Normal View History

2017-11-29 20:01:17 +01:00
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;