Improved test database upgrade script

This commit is contained in:
Marcin Kurczewski 2014-11-21 10:03:08 +01:00
parent c6fe7a4320
commit 029f0f00a4

View file

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