Drop only if exists

This commit is contained in:
Lukas Reschke 2014-09-24 12:37:00 +02:00
parent 75b8488ab9
commit 05ac044e28
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ function execute_tests {
# drop database
if [ "$1" == "mysql" ] ; then
mysql -u $DATABASEUSER -powncloud -e "DROP DATABASE $DATABASENAME" || true
mysql -u $DATABASEUSER -powncloud -e "DROP DATABASE IF EXISTS $DATABASENAME" || true
fi
if [ "$1" == "pgsql" ] ; then
dropdb -U $DATABASEUSER $DATABASENAME || true