Update create_database.sh

This commit is contained in:
MaelREBOUX 2021-03-10 09:02:19 +01:00
parent 360475a524
commit 6a068a63e1

View file

@ -9,6 +9,7 @@ PSQL=/usr/bin/psql
DB_HOST=localhost DB_HOST=localhost
DB_NAME=redadeg_$millesime DB_NAME=redadeg_$millesime
psql -h $DB_HOST -d postgres -c "set AUTOCOMMIT on"
psql -h $DB_HOST -d postgres -c "DROP DATABASE IF EXISTS $DB_NAME; DROP ROLE IF EXISTS redadeg;" psql -h $DB_HOST -d postgres -c "DROP DATABASE IF EXISTS $DB_NAME; DROP ROLE IF EXISTS redadeg;"
# create role # create role