Make sure the migrations table schema is always checked
Signed-off-by: Julius Härtl <jus@bitgrid.net> Revert "Make sure the migrations table schema is always checked" This reverts commit 258955ef738a52d9da2ac2fe59466e6093d7e9bc. Set current vendor during upgrade and perform migrations table change if needed Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
0207be4c79
commit
b84bdb1080
|
@ -124,6 +124,11 @@ class MigrationService {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->connection->tableExists('migrations') && \OC::$server->getConfig()->getAppValue('core', 'vendor', '') !== 'owncloud') {
|
||||||
|
$this->migrationTableCreated = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$schema = new SchemaWrapper($this->connection);
|
$schema = new SchemaWrapper($this->connection);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -197,6 +197,7 @@ class Updater extends BasicEmitter {
|
||||||
isset($allowedPreviousVersions['owncloud'][$majorMinor])
|
isset($allowedPreviousVersions['owncloud'][$majorMinor])
|
||||||
)) {
|
)) {
|
||||||
$currentVendor = 'owncloud';
|
$currentVendor = 'owncloud';
|
||||||
|
$this->config->setAppValue('core', 'vendor', $currentVendor);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($currentVendor === 'nextcloud') {
|
if ($currentVendor === 'nextcloud') {
|
||||||
|
|
Loading…
Reference in New Issue