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

5 lines
231 B
SQL

CREATE ROLE gnuhealth NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT LOGIN ENCRYPTED PASSWORD '${GNUHEALTH_PWD}';
CREATE DATABASE gnuhealth;
REVOKE ALL ON DATABASE gnuhealth FROM public;
ALTER DATABASE gnuhealth OWNER TO gnuhealth;