mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge remote-tracking branch 'github-p/ticket/10828' into develop-olympus
* github-p/ticket/10828: [ticket/10828] Connect to postgres database by default.
This commit is contained in:
commit
4ebcb5319e
1 changed files with 15 additions and 0 deletions
|
@ -80,6 +80,21 @@ class phpbb_database_test_connection_manager
|
||||||
{
|
{
|
||||||
$dsn .= ';dbname=' . $this->config['dbname'];
|
$dsn .= ';dbname=' . $this->config['dbname'];
|
||||||
}
|
}
|
||||||
|
else if ($this->dbms['PDO'] == 'pgsql')
|
||||||
|
{
|
||||||
|
// Postgres always connects to a
|
||||||
|
// database. If the database is not
|
||||||
|
// specified here, but the username
|
||||||
|
// is specified, then connection
|
||||||
|
// will be to the database named
|
||||||
|
// as the username.
|
||||||
|
//
|
||||||
|
// For greater compatibility, connect
|
||||||
|
// instead to postgres database which
|
||||||
|
// should always exist:
|
||||||
|
// http://www.postgresql.org/docs/9.0/static/manage-ag-templatedbs.html
|
||||||
|
$dsn .= ';dbname=postgres';
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue