diff options
author | Dan Bartram <daneybartram@gmail.com> | 2014-10-24 17:44:06 +0100 |
---|---|---|
committer | Dan Bartram <daneybartram@gmail.com> | 2014-10-24 17:44:06 +0100 |
commit | 9c1015b790560439b039c0cf7e162b316fe3a2f7 (patch) | |
tree | 93307aa24eb0981e007cd6af69155dc5461c0945 /lib/private/db.php | |
parent | 25a4b5a93581800887fceef7444b0d3702e4f018 (diff) | |
download | nextcloud-server-9c1015b790560439b039c0cf7e162b316fe3a2f7.tar.gz nextcloud-server-9c1015b790560439b039c0cf7e162b316fe3a2f7.zip |
Add missing DB rollback functionality
Diffstat (limited to 'lib/private/db.php')
-rw-r--r-- | lib/private/db.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/db.php b/lib/private/db.php index 9b904a1518f..b820281b8a3 100644 --- a/lib/private/db.php +++ b/lib/private/db.php @@ -205,6 +205,13 @@ class OC_DB { } /** + * Rollback the database changes done during a transaction that is in progress + */ + public static function rollback() { + return \OC::$server->getDatabaseConnection()->rollback(); + } + + /** * saves database schema to xml file * @param string $file name of file * @param int $mode |