diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-11 17:02:34 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-07-14 16:20:09 +0200 |
commit | 10a29556b0eca1303fd48caccbc464e1b6231d05 (patch) | |
tree | 9ae5f6cbc6addd343c48124ab0b57551a66360f2 /lib/private/db.php | |
parent | 05ba9b3c64b5c4a109773fe776fd6a2ebd34502a (diff) | |
download | nextcloud-server-10a29556b0eca1303fd48caccbc464e1b6231d05.tar.gz nextcloud-server-10a29556b0eca1303fd48caccbc464e1b6231d05.zip |
- Added test to trigger index id error
- re-enable encryption migration tests
- sqlite requires reconnect after schema changes
Diffstat (limited to 'lib/private/db.php')
-rw-r--r-- | lib/private/db.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/db.php b/lib/private/db.php index 6aaf31a30cd..221a369cad2 100644 --- a/lib/private/db.php +++ b/lib/private/db.php @@ -106,6 +106,16 @@ class OC_DB { } /** + * The existing database connection is closed and connected again + */ + public static function reconnect() { + if(self::$connection) { + self::$connection->close(); + self::$connection->connect(); + } + } + + /** * @return \OC\DB\Connection */ static public function getConnection() { |