diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-04 18:15:58 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-04 18:17:46 +0200 |
commit | d4ffafe4674dbda984c78ea9f7db894156e2a764 (patch) | |
tree | 80206d4c25c38092219ca74b4170893ade376e3f /lib/private/updater.php | |
parent | 5b97369b00afbdf55eed145be9ac981dca06d2a9 (diff) | |
download | nextcloud-server-d4ffafe4674dbda984c78ea9f7db894156e2a764.tar.gz nextcloud-server-d4ffafe4674dbda984c78ea9f7db894156e2a764.zip |
Removed simulate db update flag and split into separate methods
Diffstat (limited to 'lib/private/updater.php')
-rw-r--r-- | lib/private/updater.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/updater.php b/lib/private/updater.php index 1c363123e10..106970c4121 100644 --- a/lib/private/updater.php +++ b/lib/private/updater.php @@ -130,7 +130,7 @@ class Updater extends BasicEmitter { // simulate DB upgrade try { // simulate core DB upgrade - \OC_DB::updateDbFromStructure(\OC::$SERVERROOT . '/db_structure.xml', true); + \OC_DB::simulateUpdateDbFromStructure(\OC::$SERVERROOT . '/db_structure.xml'); // simulate apps DB upgrade $version = \OC_Util::getVersion(); @@ -139,7 +139,7 @@ class Updater extends BasicEmitter { $info = \OC_App::getAppInfo($appId); if (\OC_App::isAppCompatible($version, $info) && \OC_App::shouldUpgrade($appId)) { if (file_exists(\OC_App::getAppPath($appId) . '/appinfo/database.xml')) { - \OC_DB::updateDbFromStructure(\OC_App::getAppPath($appId) . '/appinfo/database.xml', true); + \OC_DB::simulateUpdateDbFromStructure(\OC_App::getAppPath($appId) . '/appinfo/database.xml'); } } } |