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'); }