mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge pull request #6821 from rxu/ticket/17509
[ticket/17509] Bump DBMS supported versions
This commit is contained in:
@@ -79,7 +79,7 @@ class connection_parameter_factory
|
||||
string|null $name = null,
|
||||
string|null $port = null) : array
|
||||
{
|
||||
if ($params['driver'] === 'pdo_sqlite')
|
||||
if (in_array($params['driver'], ['pdo_sqlite', 'sqlite3']))
|
||||
{
|
||||
return self::enrich_parameters(
|
||||
self::build_sqlite_parameters($params, $host, $user, $password)
|
||||
|
@@ -15,7 +15,7 @@ namespace phpbb\db\driver;
|
||||
|
||||
/**
|
||||
* SQLite3 Database Abstraction Layer
|
||||
* Minimum Requirement: 3.6.15+
|
||||
* Minimum Requirement: 3.8.3+
|
||||
*/
|
||||
class sqlite3 extends \phpbb\db\driver\driver
|
||||
{
|
||||
|
@@ -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 false;
|
||||
return [$e->getMessage()];
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user