diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-10-24 19:52:56 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-10-24 19:52:56 +0200 |
commit | 63f2b1f460f71514902efba280cb1d0ce3a7f2c4 (patch) | |
tree | cc91592c6475cd838e4284b2ff48691fdac42327 /lib/private | |
parent | 9fa54831111bf64294ff292b05d0c8e65fea4d37 (diff) | |
parent | 9c1015b790560439b039c0cf7e162b316fe3a2f7 (diff) | |
download | nextcloud-server-63f2b1f460f71514902efba280cb1d0ce3a7f2c4.tar.gz nextcloud-server-63f2b1f460f71514902efba280cb1d0ce3a7f2c4.zip |
Merge pull request #11767 from danbartram/add_db_rollback
Add missing DB rollback functionality
Diffstat (limited to 'lib/private')
-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 |