Wrap the import/export db in a wrapper to make it compatible with the old style

This commit is contained in:
Bart Visscher 2013-12-20 12:09:19 +01:00
parent 8f0c56c1b2
commit 34fcf1e9d0
2 changed files with 4 additions and 0 deletions

View file

@ -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);

View file

@ -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;
}