mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-30 04:38:21 +02:00
[feature/sqlite3] Use SQLite3 by default
PHPBB3-9728
This commit is contained in:
parent
86c073ec3e
commit
d419bd1899
@ -104,23 +104,23 @@ class phpbb_test_case_helpers
|
||||
{
|
||||
$config = array();
|
||||
|
||||
if (extension_loaded('sqlite') && version_compare(PHPUnit_Runner_Version::id(), '3.4.15', '>='))
|
||||
|
||||
if (extension_loaded('sqlite3'))
|
||||
{
|
||||
$config = array_merge($config, array(
|
||||
'dbms' => 'phpbb\db\driver\sqlite',
|
||||
'dbhost' => dirname(__FILE__) . '/../phpbb_unit_tests.sqlite2', // filename
|
||||
'dbms' => 'phpbb\db\driver\sqlite3',
|
||||
'dbhost' => dirname(__FILE__) . '/../phpbb_unit_tests.sqlite3', // filename
|
||||
'dbport' => '',
|
||||
'dbname' => '',
|
||||
'dbuser' => '',
|
||||
'dbpasswd' => '',
|
||||
));
|
||||
}
|
||||
|
||||
if (extension_loaded('sqlite3') && version_compare(PHP_VERSION, '5.4.0', '>=') && version_compare(PHPUnit_Runner_Version::id(), '3.4.15', '>='))
|
||||
else if (extension_loaded('sqlite'))
|
||||
{
|
||||
$config = array_merge($config, array(
|
||||
'dbms' => 'phpbb\db\driver\sqlite3',
|
||||
'dbhost' => dirname(__FILE__) . '/../phpbb_unit_tests.sqlite3', // filename
|
||||
'dbms' => 'phpbb\db\driver\sqlite',
|
||||
'dbhost' => dirname(__FILE__) . '/../phpbb_unit_tests.sqlite2', // filename
|
||||
'dbport' => '',
|
||||
'dbname' => '',
|
||||
'dbuser' => '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user