WIP schemas
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user