Wrap the import/export db in a wrapper to make it compatible with the old style
This commit is contained in:
parent
8f0c56c1b2
commit
34fcf1e9d0
2 changed files with 4 additions and 0 deletions
|
@ -451,6 +451,9 @@ class OC_Migrate{
|
|||
'path' => self::$dbpath,
|
||||
'driver' => 'pdo_sqlite',
|
||||
);
|
||||
$connectionParams['adapter'] = '\OC\DB\AdapterSqlite';
|
||||
$connectionParams['wrapperClass'] = 'OC\DB\Connection';
|
||||
$connectionParams['tablePrefix'] = '';
|
||||
|
||||
// Try to establish connection
|
||||
self::$migration_database = \Doctrine\DBAL\DriverManager::getConnection($connectionParams);
|
||||
|
|
|
@ -63,6 +63,7 @@ class OC_Migration_Content{
|
|||
|
||||
// Optimize the query
|
||||
$query = $this->db->prepare( $query );
|
||||
$query = new OC_DB_StatementWrapper($query, false);
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue