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
|
@ -451,6 +451,9 @@ class OC_Migrate{
|
||||||
'path' => self::$dbpath,
|
'path' => self::$dbpath,
|
||||||
'driver' => 'pdo_sqlite',
|
'driver' => 'pdo_sqlite',
|
||||||
);
|
);
|
||||||
|
$connectionParams['adapter'] = '\OC\DB\AdapterSqlite';
|
||||||
|
$connectionParams['wrapperClass'] = 'OC\DB\Connection';
|
||||||
|
$connectionParams['tablePrefix'] = '';
|
||||||
|
|
||||||
// Try to establish connection
|
// Try to establish connection
|
||||||
self::$migration_database = \Doctrine\DBAL\DriverManager::getConnection($connectionParams);
|
self::$migration_database = \Doctrine\DBAL\DriverManager::getConnection($connectionParams);
|
||||||
|
|
|
@ -63,6 +63,7 @@ class OC_Migration_Content{
|
||||||
|
|
||||||
// Optimize the query
|
// Optimize the query
|
||||||
$query = $this->db->prepare( $query );
|
$query = $this->db->prepare( $query );
|
||||||
|
$query = new OC_DB_StatementWrapper($query, false);
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue