From 029f0f00a4721901b293ac1c07ca7bb92a18450b Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 21 Nov 2014 10:03:08 +0100 Subject: [PATCH] Improved test database upgrade script --- scripts/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade.php b/scripts/upgrade.php index aacad7b4..bd3d08ef 100644 --- a/scripts/upgrade.php +++ b/scripts/upgrade.php @@ -25,7 +25,7 @@ if ($testMode) $databaseConnection = \Szurubooru\Injector::get(\Szurubooru\DatabaseConnection::class); $pdo = $databaseConnection->getPDO(); - $pdo->exec('DROP DATABASE szuru_test'); + $pdo->exec('DROP DATABASE IF EXISTS szuru_test'); $pdo->exec('CREATE DATABASE szuru_test'); $pdo->exec('USE szuru_test'); }