Skip to content

feat: run pending schema migrations from the admin UI - #834

Open
anonymoususer72041 wants to merge 2 commits into
opencats:masterfrom
anonymoususer72041:feat/migrate-from-admin-ui
Open

feat: run pending schema migrations from the admin UI#834
anonymoususer72041 wants to merge 2 commits into
opencats:masterfrom
anonymoususer72041:feat/migrate-from-admin-ui

Let site admins run pending migrations from a maintenance page

4bfd2e1
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Jul 28, 2026 in 0s

7 new issues (0 max.) of at least severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 5
- Added 7
           

Complexity increasing per file
==============================
- lib/ModuleUtility.php  1
- modules/install/CATSUI.php  5
- js/install.js  8
         

See the complete overview on Codacy

Annotations

Check notice on line 127 in js/install.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

js/install.js#L127

A function with a name starting with an uppercase letter should only be used as a constructor.

Check warning on line 530 in lib/ModuleUtility.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

lib/ModuleUtility.php#L530

Avoid using static access to class 'SchemaMigrationStatus' in method 'processModuleSchema'.

Check warning on line 51 in modules/install/CATSUI.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

modules/install/CATSUI.php#L51

Avoid using static access to class 'CATSUtility' in method 'handleRequest'.

Check warning on line 52 in modules/install/CATSUI.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

modules/install/CATSUI.php#L52

The method handleRequest() contains an exit expression.

Check warning on line 58 in modules/install/CATSUI.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

modules/install/CATSUI.php#L58

Avoid using static access to class 'CommonErrors' in method 'handleRequest'.

Check warning on line 61 in modules/install/CATSUI.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

modules/install/CATSUI.php#L61

Avoid using static access to class 'SchemaMigrationStatus' in method 'handleRequest'.

Check warning on line 63 in modules/install/CATSUI.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

modules/install/CATSUI.php#L63

Avoid using static access to class 'CATSUtility' in method 'handleRequest'.