Removed WITH OWNER statement on MySQL queries

This commit is contained in:
Mitchell Hewes 2017-01-11 12:46:07 +11:00
parent 8cd29d3600
commit 9ae4fd07b9
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ abstract class BaseApiTest extends PHPUnit_Framework_TestCase
$pdo->exec('KILL '.$row['id']); $pdo->exec('KILL '.$row['id']);
} }
$pdo->exec('DROP DATABASE '.DB_NAME); $pdo->exec('DROP DATABASE '.DB_NAME);
$pdo->exec('CREATE DATABASE '.DB_NAME.' WITH OWNER '.DB_USERNAME); $pdo->exec('CREATE DATABASE '.DB_NAME);
$pdo = null; $pdo = null;
} else if (file_exists(DB_FILENAME)) { } else if (file_exists(DB_FILENAME)) {
unlink(DB_FILENAME); unlink(DB_FILENAME);

View File

@ -20,7 +20,7 @@ abstract class BaseTest extends PHPUnit_Framework_TestCase
} else if (DB_DRIVER === 'mysql') { } else if (DB_DRIVER === 'mysql') {
$pdo = new PDO('mysql:host='.DB_HOSTNAME, DB_USERNAME, DB_PASSWORD); $pdo = new PDO('mysql:host='.DB_HOSTNAME, DB_USERNAME, DB_PASSWORD);
$pdo->exec('DROP DATABASE '.DB_NAME); $pdo->exec('DROP DATABASE '.DB_NAME);
$pdo->exec('CREATE DATABASE '.DB_NAME.' WITH OWNER '.DB_USERNAME); $pdo->exec('CREATE DATABASE '.DB_NAME);
$pdo = null; $pdo = null;
} }