diff options
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/db.php b/lib/db.php index a7b7ae75da0..9c46a40addb 100644 --- a/lib/db.php +++ b/lib/db.php @@ -489,7 +489,7 @@ class OC_DB { public static function replaceDB( $file ){ $apps = OC_App::getAllApps(); - + self::beginTransaction(); // Delete the old tables self::removeDBStructure( OC::$SERVERROOT . '/db_structure.xml' ); @@ -501,11 +501,8 @@ class OC_DB { } // Create new tables - if( self::createDBFromStructure( $file ) ){ - return true; - } else { - return false; - } + self::createDBFromStructure( $file ); + self::commit(); } |