DbResourcePage: Don't fail validation if connecting to pgsql wasn't successfull
This commit is contained in:
parent
bcdad8c9b3
commit
ae9575e7e4
|
@ -141,14 +141,14 @@ class DbResourcePage extends Form
|
|||
|
||||
if ($this->getValue('db') === 'pgsql') {
|
||||
if ($connectionError !== null) {
|
||||
$this->warning(sprintf(
|
||||
$this->translate('Unable to check the server\'s version. This is usually not a critical error'
|
||||
. ' as there is probably only access to the database permitted which does not exist yet. If you are'
|
||||
. ' absolutely sure you are running PostgreSQL in a version equal to or newer than 9.1,'
|
||||
. ' you can skip the validation and safely proceed to the next step. The error was: %s'),
|
||||
$connectionError->getMessage()
|
||||
));
|
||||
$state = false;
|
||||
// $this->warning(sprintf(
|
||||
// $this->translate('Unable to check the server\'s version. This is usually not a critical error'
|
||||
// . ' as there is probably only access to the database permitted which does not exist yet. If you are'
|
||||
// . ' absolutely sure you are running PostgreSQL in a version equal to or newer than 9.1,'
|
||||
// . ' you can skip the validation and safely proceed to the next step. The error was: %s'),
|
||||
// $connectionError->getMessage()
|
||||
// ));
|
||||
// $state = false;
|
||||
} else {
|
||||
$version = $db->getServerVersion();
|
||||
if (version_compare($version, '9.1', '<')) {
|
||||
|
|
Loading…
Reference in New Issue