@@ -15,27 +15,27 @@ |
||
15 | 15 | |
16 | 16 | class MimeTypeMigrationAvailable implements ISetupCheck { |
17 | 17 | |
18 | - public function __construct( |
|
19 | - private RepairMimeTypes $repairMimeTypes, |
|
20 | - private IL10N $l10n, |
|
21 | - ) { |
|
22 | - } |
|
23 | - |
|
24 | - public function getCategory(): string { |
|
25 | - return 'system'; |
|
26 | - } |
|
27 | - |
|
28 | - public function getName(): string { |
|
29 | - return $this->l10n->t('Mimetype migrations available'); |
|
30 | - } |
|
31 | - |
|
32 | - public function run(): SetupResult { |
|
33 | - if ($this->repairMimeTypes->migrationsAvailable()) { |
|
34 | - return SetupResult::warning( |
|
35 | - $this->l10n->t('One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command `occ maintenance:repair --include-expensive` to perform the migrations.'), |
|
36 | - ); |
|
37 | - } else { |
|
38 | - return SetupResult::success('None'); |
|
39 | - } |
|
40 | - } |
|
18 | + public function __construct( |
|
19 | + private RepairMimeTypes $repairMimeTypes, |
|
20 | + private IL10N $l10n, |
|
21 | + ) { |
|
22 | + } |
|
23 | + |
|
24 | + public function getCategory(): string { |
|
25 | + return 'system'; |
|
26 | + } |
|
27 | + |
|
28 | + public function getName(): string { |
|
29 | + return $this->l10n->t('Mimetype migrations available'); |
|
30 | + } |
|
31 | + |
|
32 | + public function run(): SetupResult { |
|
33 | + if ($this->repairMimeTypes->migrationsAvailable()) { |
|
34 | + return SetupResult::warning( |
|
35 | + $this->l10n->t('One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command `occ maintenance:repair --include-expensive` to perform the migrations.'), |
|
36 | + ); |
|
37 | + } else { |
|
38 | + return SetupResult::success('None'); |
|
39 | + } |
|
40 | + } |
|
41 | 41 | } |