Spotter-VM/sahana/tmp/sahana-createdb.sql

9 lines
339 B
MySQL
Raw Normal View History

2017-06-25 20:49:41 +02:00
CREATE ROLE sahana NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT LOGIN ENCRYPTED PASSWORD '${SAHANA_PWD}';
CREATE DATABASE sahana;
REVOKE ALL ON DATABASE sahana FROM public;
ALTER DATABASE sahana OWNER TO sahana;
\c sahana;
CREATE EXTENSION postgis;
GRANT ALL ON geometry_columns TO sahana;
GRANT ALL ON spatial_ref_sys TO sahana;