From 17cf2e1aa175657e8f58b60ff5f19b798bb70bc9 Mon Sep 17 00:00:00 2001 From: Fanch Date: Fri, 11 May 2018 17:29:02 +0200 Subject: [PATCH] [CI] Remove drop database --- bin/ci-scripts/create_database.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ci-scripts/create_database.sh b/bin/ci-scripts/create_database.sh index 0c71194..879f1be 100755 --- a/bin/ci-scripts/create_database.sh +++ b/bin/ci-scripts/create_database.sh @@ -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} ]