summaryrefslogtreecommitdiffstats
path: root/lib/private/migrate.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-12-20 12:09:19 +0100
committerBart Visscher <bartv@thisnet.nl>2013-12-20 12:09:19 +0100
commit34fcf1e9d0b046afb35f3033cf8c3bd4a4c5ca62 (patch)
tree3a35208e60001dce243fa2088545b1f308b91a4c /lib/private/migrate.php
parent8f0c56c1b245ed7c6856080597b48ef3d82d1a24 (diff)
downloadnextcloud-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/private/migrate.php')
-rw-r--r--lib/private/migrate.php3
1 files changed, 3 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);