Spotter-VM/lxc-apps/safire/install/createdb.sql

9 lines
331 B
MySQL
Raw Permalink Normal View History

2020-04-14 14:17:21 +02:00
CREATE ROLE safire NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT LOGIN ENCRYPTED PASSWORD '${SAFIRE_PWD}';
CREATE DATABASE safire;
REVOKE ALL ON DATABASE safire FROM public;
ALTER DATABASE safire OWNER TO safire;
\c safire;
CREATE EXTENSION postgis;
GRANT ALL ON geometry_columns TO safire;
GRANT ALL ON spatial_ref_sys TO safire;