| @@ 84-90 (lines=7) @@ | ||
| 81 | * @throws \Exception in case of failure |
|
| 82 | * @since 9.1.0 |
|
| 83 | */ |
|
| 84 | public function run(IOutput $output) { |
|
| 85 | $versionFromBeforeUpdate = $this->config->getSystemValue('version', '0.0.0'); |
|
| 86 | if (version_compare($versionFromBeforeUpdate, '13.0.0.1', '<=')) { |
|
| 87 | $count = $this->repair(); |
|
| 88 | $output->info('Repaired ' . $count . ' folders'); |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * rename all dirs with user specific keys to 'user-uid' |
|
| @@ 175-183 (lines=9) @@ | ||
| 172 | return $count; |
|
| 173 | } |
|
| 174 | ||
| 175 | public function run(IOutput $output) { |
|
| 176 | $versionFromBeforeUpdate = $this->config->getSystemValue('version', '0.0.0'); |
|
| 177 | // was added to 12.0.0.30 and 13.0.0.1 |
|
| 178 | if (version_compare($versionFromBeforeUpdate, '12.0.0.30', '<') || version_compare($versionFromBeforeUpdate, '13.0.0.0', '==')) { |
|
| 179 | $count = $this->repair(); |
|
| 180 | ||
| 181 | $output->info('Repaired ' . $count . ' paths'); |
|
| 182 | } |
|
| 183 | } |
|
| 184 | } |
|
| 185 | ||