Skip to content
Snippets Groups Projects
Commit 74f6e04b authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #11275 from owncloud/drop-if-e

Drop only if exists
parents 75b8488a 05ac044e
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment