Refine version comparision for repair job for major version updates
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
b89f4b33f0
commit
a577768aa6
|
@ -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