diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-12-20 12:09:19 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-12-20 12:09:19 +0100 |
commit | 34fcf1e9d0b046afb35f3033cf8c3bd4a4c5ca62 (patch) | |
tree | 3a35208e60001dce243fa2088545b1f308b91a4c /lib | |
parent | 8f0c56c1b245ed7c6856080597b48ef3d82d1a24 (diff) | |
download | nextcloud-server-34fcf1e9d0b046afb35f3033cf8c3bd4a4c5ca62.tar.gz nextcloud-server-34fcf1e9d0b046afb35f3033cf8c3bd4a4c5ca62.zip |
Wrap the import/export db in a wrapper to make it compatible with the old style
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/migrate.php | 3 | ||||
-rw-r--r-- | lib/private/migration/content.php | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/migrate.php b/lib/private/migrate.php index b45848fbcbd..5354e9d338d 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 389dd8fc74f..d6eee40786e 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; } |