adjust applicable version
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
1bb5314491
commit
8315de942c
|
@ -126,7 +126,7 @@ class RepairDavShares implements IRepairStep {
|
||||||
*/
|
*/
|
||||||
public function run(IOutput $output) {
|
public function run(IOutput $output) {
|
||||||
$versionFromBeforeUpdate = $this->config->getSystemValue('version', '0.0.0');
|
$versionFromBeforeUpdate = $this->config->getSystemValue('version', '0.0.0');
|
||||||
if (version_compare($versionFromBeforeUpdate, '20.0.7', '<')
|
if (version_compare($versionFromBeforeUpdate, '19.0.9', '<')
|
||||||
&& $this->repairUnencodedGroupShares()
|
&& $this->repairUnencodedGroupShares()
|
||||||
) {
|
) {
|
||||||
$output->info('Repaired DAV group shares');
|
$output->info('Repaired DAV group shares');
|
||||||
|
|
|
@ -74,7 +74,7 @@ class RepairDavSharesTest extends TestCase {
|
||||||
$this->config->expects($this->any())
|
$this->config->expects($this->any())
|
||||||
->method('getSystemValue')
|
->method('getSystemValue')
|
||||||
->with('version', '0.0.0')
|
->with('version', '0.0.0')
|
||||||
->willReturn('20.0.2');
|
->willReturn('19.0.2');
|
||||||
|
|
||||||
$this->output->expects($this->atLeastOnce())
|
$this->output->expects($this->atLeastOnce())
|
||||||
->method('info');
|
->method('info');
|
||||||
|
|
Loading…
Reference in New Issue