WIP schemas

This commit is contained in:
Motiejus Jakštys
2019-10-26 15:12:18 +03:00
parent 4682cdb31d
commit e14cf80e1a
5 changed files with 39 additions and 11 deletions

View File

@@ -5,12 +5,8 @@ if [[ $1 == init ]]; then
mkdir -p db && initdb db
pg_ctl -D db -l db/logfile start
psql postgres \
-c 'CREATE DATABASE airportgames;' \
-c 'CREATE USER airportgames;' \
-c 'GRANT ALL PRIVILEGES ON DATABASE airportgames to airportgames;'
psql -d airportgames \
-c 'CREATE EXTENSION postgis'
psql -c 'CREATE EXTENSION postgis;'
psql < init.sql
fi
if [[ $1 == start ]]; then