Making sure the upgrade script has access to the pdo object
This commit is contained in:
parent
0e7bb586a6
commit
30e8c77254
1 changed files with 2 additions and 1 deletions
|
@ -151,9 +151,10 @@ HTML;
|
|||
}
|
||||
}
|
||||
|
||||
$pdo = $GLOBALS['DB']->getPDO();
|
||||
if(version_compare($sVersionFrom, '0.3.0', '<')) {
|
||||
// Upgrading from sabre/dav 1.8 schema to 3.1 schema.
|
||||
$pdo = $GLOBALS['DB']->getPDO();
|
||||
|
||||
if(defined("PROJECT_DB_MYSQL") && PROJECT_DB_MYSQL === TRUE) {
|
||||
|
||||
// MySQL upgrade
|
||||
|
|
Loading…
Add table
Reference in a new issue