mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Compare commits
2 commits
50e7103080
...
f23af6f485
Author | SHA1 | Date | |
---|---|---|---|
|
f23af6f485 | ||
|
b8e5caedbf |
3 changed files with 19 additions and 3 deletions
|
@ -202,6 +202,7 @@ $lang = array_merge($lang, array(
|
|||
'INST_ERR_DB_NO_WRITABLE' => 'Both the database and the directory containing it must be writable.',
|
||||
'INST_ERR_DB_NO_ERROR' => 'No error message given.',
|
||||
'INST_ERR_PREFIX' => 'Tables with the specified prefix already exist, please choose an alternative.',
|
||||
'INST_ERR_DB_NO_MARIADB' => 'The version of MariaDB installed on this machine is too old, it must be upgraded to at least 10.2.7.',
|
||||
'INST_ERR_DB_NO_MYSQLI' => 'The version of MySQL installed on this machine is too old, it must be upgraded to at least 5.6.',
|
||||
'INST_ERR_DB_NO_MSSQL' => 'The version of Microsoft SQL Server installed on this machine is too old, it must be upgraded to at least SQL Server 2012 (11.0.2100.60)',
|
||||
'INST_ERR_DB_NO_SQLITE3' => 'The version of the SQLite extension you have installed is too old, it must be upgraded to at least 3.8.3.',
|
||||
|
|
|
@ -289,6 +289,12 @@ class doctrine implements tools_interface
|
|||
|
||||
if (count($primary_key_indexes))
|
||||
{
|
||||
// For PostgreSQL, drop primary index first to avoid "Dependent objects still exist" error
|
||||
if (stripos($this->get_schema_manager()->getDatabasePlatform()->getname(), 'postgresql') !== false)
|
||||
{
|
||||
$this->get_schema_manager()->dropIndex('"primary"', $table_name);
|
||||
}
|
||||
|
||||
$ret = $this->alter_schema(
|
||||
function (Schema $schema) use ($table_name, $column_name): void
|
||||
{
|
||||
|
@ -478,7 +484,7 @@ class doctrine implements tools_interface
|
|||
catch (Exception $e)
|
||||
{
|
||||
// @todo: check if it makes sense to properly handle the exception
|
||||
return $e->getMessage();
|
||||
return [$e->getMessage()];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -410,12 +410,21 @@ class database
|
|||
switch ($dbms)
|
||||
{
|
||||
case 'mysqli':
|
||||
if (stripos($db->sql_server_info(), 'mariadb') !== false && version_compare($db_server_version, '10.2.7', '<'))
|
||||
{
|
||||
$errors[] = array(
|
||||
'title' => 'INST_ERR_DB_NO_MARIADB',
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (version_compare($db_server_version, '5.6', '<'))
|
||||
{
|
||||
$errors[] = array(
|
||||
'title' => 'INST_ERR_DB_NO_MYSQLI',
|
||||
);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'sqlite3':
|
||||
if (version_compare($db_server_version, '3.8.3', '<'))
|
||||
|
|
Loading…
Add table
Reference in a new issue