simplify connection handling in setup script

- factor out runWithEnv
- require explicit connect() call to avoid rechecking for oDB
  (more for readability than for speed)
- clean DSNInfo of empty strings and simplify check for entries
This commit is contained in:
Sarah Hoffmann
2018-11-20 22:51:37 +01:00
parent e2d0c9f3c1
commit 409ded385f
3 changed files with 54 additions and 58 deletions

View File

@@ -110,6 +110,7 @@ if ($aResult['init-updates']) {
'enable-diff-updates' => true,
'verbose' => $aResult['verbose']
));
$cSetup->connect();
$cSetup->createFunctions();
}