diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-03-02 21:47:20 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-03-02 21:47:20 +0000 |
commit | 9c79de4aa01697e6b2eece450a83ca2019eb9b1c (patch) | |
tree | a1a4f0375a4bd8e766e752945c627119063b0336 /lib/db.php | |
parent | 45ef2ecf52abc58e5c21105345cb2b0560102939 (diff) | |
download | nextcloud-server-9c79de4aa01697e6b2eece450a83ca2019eb9b1c.tar.gz nextcloud-server-9c79de4aa01697e6b2eece450a83ca2019eb9b1c.zip |
removed duplicate function
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/lib/db.php b/lib/db.php index f43f00a397b..2348da908ef 100644 --- a/lib/db.php +++ b/lib/db.php @@ -393,27 +393,6 @@ class OC_DB { } /** - * @breif replaces the owncloud tables with a new set - */ - public static function replaceDB( $file ){ - - // Delete the old tables - self::removeDBStructure( '/home/tom/sites/secure.tomneedham.com/public_html/migration/db_structure.xml' ); - - $apps = OC_App::getAllApps(); - foreach($apps as $app){ - $path = '/apps/'.$app.'/appinfo/database.xml'; - if(file_exists($path)){ - self::removeDBStructure( $path ); - } - } - - // Create new tables - self::createDBFromStructure( $file ); - - } - - /** * @brief connects to a MDB2 database scheme * @returns true/false * @@ -511,10 +490,11 @@ class OC_DB { */ public static function replaceDB( $file ){ + $apps = OC_App::getAllApps(); + // Delete the old tables self::removeDBStructure( OC::$DOCUMENTROOT . 'db_structure.xml' ); - $apps = OC_App::getAllApps(); foreach($apps as $app){ $path = '/apps/'.$app.'/appinfo/database.xml'; if(file_exists($path)){ |