update database initialization to work w/ PGSQL15+

This commit is contained in:
Sam 2022-10-30 08:32:37 +01:00
parent 1dc35c379d
commit 0f93f53151

View File

@ -1,9 +1,9 @@
DROP DATABASE IF EXISTS fittrackee; DROP DATABASE IF EXISTS fittrackee;
DROP DATABASE IF EXISTS fittrackee_test; DROP DATABASE IF EXISTS fittrackee_test;
DROP SCHEMA IF EXISTS fittrackee;
DROP USER IF EXISTS fittrackee; DROP USER IF EXISTS fittrackee;
CREATE DATABASE fittrackee;
CREATE DATABASE fittrackee_test;
CREATE USER fittrackee WITH PASSWORD 'fittrackee'; CREATE USER fittrackee WITH PASSWORD 'fittrackee';
GRANT ALL PRIVILEGES ON DATABASE fittrackee TO fittrackee; CREATE SCHEMA fittrackee AUTHORIZATION fittrackee;
GRANT ALL PRIVILEGES ON DATABASE fittrackee_test TO fittrackee; CREATE DATABASE fittrackee OWNER fittrackee;
CREATE DATABASE fittrackee_test OWNER fittrackee;