aboutsummaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-29 20:34:44 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-29 20:34:44 +0200
commitdb18218a1bba86e364fd4fec08c2e1a0eb4e7b16 (patch)
treecfa630c22ea74e3d6bd6258b78776a1d8b5c84bd /lib/db.php
parent9e32e0730644a4340b2f88b0d8750fd1f8e8903a (diff)
downloadnextcloud-server-db18218a1bba86e364fd4fec08c2e1a0eb4e7b16.tar.gz
nextcloud-server-db18218a1bba86e364fd4fec08c2e1a0eb4e7b16.zip
Space before tab fixes
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/db.php b/lib/db.php
index ecaf9e37ee5..de72dee2554 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -592,21 +592,21 @@ class OC_DB {
* @param $file string path to the MDB2 xml db export file
*/
public static function replaceDB( $file ){
- $apps = OC_App::getAllApps();
- self::beginTransaction();
- // Delete the old tables
- self::removeDBStructure( OC::$SERVERROOT . '/db_structure.xml' );
-
- foreach($apps as $app){
- $path = OC_App::getAppPath($app).'/appinfo/database.xml';
- if(file_exists($path)){
- self::removeDBStructure( $path );
- }
- }
-
- // Create new tables
- self::createDBFromStructure( $file );
- self::commit();
+ $apps = OC_App::getAllApps();
+ self::beginTransaction();
+ // Delete the old tables
+ self::removeDBStructure( OC::$SERVERROOT . '/db_structure.xml' );
+
+ foreach($apps as $app){
+ $path = OC_App::getAppPath($app).'/appinfo/database.xml';
+ if(file_exists($path)){
+ self::removeDBStructure( $path );
+ }
+ }
+
+ // Create new tables
+ self::createDBFromStructure( $file );
+ self::commit();
}