Improved test database upgrade script
This commit is contained in:
parent
c6fe7a4320
commit
029f0f00a4
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue