diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php index 27e03318d6beec910cf6f0f1e7d71ea4f753dd37..c1a6b82dccd3984cc41449f930b75e4468c4e501 100644 --- a/lib/private/DB/MigrationService.php +++ b/lib/private/DB/MigrationService.php @@ -125,7 +125,7 @@ class MigrationService { return false; } - if ($this->connection->tableExists('migrations')) { + if ($this->connection->tableExists('migrations') && \OC::$server->getConfig()->getAppValue('core', 'vendor', '') !== 'owncloud') { $this->migrationTableCreated = true; return false; } diff --git a/lib/private/Updater.php b/lib/private/Updater.php index 44f99c9e8c7757f567f5aea07c21d2eecab5b712..998fb4f2211b94c97bf0c0f51dbd8791e40f0691 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -197,6 +197,7 @@ class Updater extends BasicEmitter { isset($allowedPreviousVersions['owncloud'][$majorMinor]) )) { $currentVendor = 'owncloud'; + $this->config->setAppValue('core', 'vendor', $currentVendor); } if ($currentVendor === 'nextcloud') {