From 34fcf1e9d0b046afb35f3033cf8c3bd4a4c5ca62 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 20 Dec 2013 12:09:19 +0100 Subject: [PATCH] Wrap the import/export db in a wrapper to make it compatible with the old style --- lib/private/migrate.php | 3 +++ lib/private/migration/content.php | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/private/migrate.php b/lib/private/migrate.php index b45848fbcb..5354e9d338 100644 --- a/lib/private/migrate.php +++ b/lib/private/migrate.php @@ -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); diff --git a/lib/private/migration/content.php b/lib/private/migration/content.php index 389dd8fc74..d6eee40786 100644 --- a/lib/private/migration/content.php +++ b/lib/private/migration/content.php @@ -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; }