Removed WITH OWNER statement on MySQL queries
This commit is contained in:
parent
8cd29d3600
commit
9ae4fd07b9
@ -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);
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user