Merge pull request #27025 from nextcloud/fix/26834/refine-version-comparision
Refine version comparision for repair job for major version updates
This commit is contained in:
commit
7a0cd9da7c
|
@ -53,8 +53,9 @@ class LookupServerSendCheck implements IRepairStep {
|
|||
$versionFromBeforeUpdate = $this->config->getSystemValue('version', '0.0.0.0');
|
||||
|
||||
// was added to 22.0.0.3
|
||||
return version_compare($versionFromBeforeUpdate, '22.0.0.3', '<') &&
|
||||
version_compare($versionFromBeforeUpdate, '22.0.0.0', '>=');
|
||||
return (version_compare($versionFromBeforeUpdate, '22.0.0.3', '<') && version_compare($versionFromBeforeUpdate, '22.0.0.0', '>='))
|
||||
||
|
||||
(version_compare($versionFromBeforeUpdate, '21.0.1.2', '<') && version_compare($versionFromBeforeUpdate, '21.0.0.0', '>'));
|
||||
}
|
||||
|
||||
public function run(IOutput $output): void {
|
||||
|
|
Loading…
Reference in New Issue