Skip to content

Commit

Permalink
[CI] Remove drop database
Browse files Browse the repository at this point in the history
  • Loading branch information
FanchTheSystem committed May 11, 2018
1 parent 234fd39 commit 17cf2e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/ci-scripts/create_database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ fi

function create_database {
# todo: remove this two line:
psql -w -h ${DBHOST} -c "DROP DATABASE IF EXISTS ${DBAPPNAME};" -U ${DBROOTUSER}
psql -w -h ${DBHOST} -c "DROP ROLE IF EXISTS ${DBAPPUSER};" -U ${DBROOTUSER}
#psql -w -h ${DBHOST} -c "DROP DATABASE IF EXISTS ${DBAPPNAME};" -U ${DBROOTUSER}
#psql -w -h ${DBHOST} -c "DROP ROLE IF EXISTS ${DBAPPUSER};" -U ${DBROOTUSER}

userexist=$(psql -qt -w -h ${DBHOST} -U ${DBROOTUSER} -c "SELECT rolname FROM pg_catalog.pg_roles WHERE rolname = '${DBAPPUSER}';"|sed -e s/' '//g)
if [ -z ${userexist} ]
Expand Down

0 comments on commit 17cf2e1

Please sign in to comment.