PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
23 Apr 2023

Partial Pull Request for Issue #40444 only the db schema part

Summary of Changes

added the schema check

Testing Instructions

see #40444

Actual result BEFORE applying this Pull Request

N/A

Expected result AFTER applying this Pull Request

Schema is checked and Update is not able to proceed if there is a database structure issue

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 23 Apr 2023
Category Libraries
avatar alikon alikon - open - 23 Apr 2023
avatar alikon alikon - change - 23 Apr 2023
Status New Pending
3e7182b 23 Apr 2023 avatar alikon cs
avatar alikon alikon - change - 23 Apr 2023
Labels Added: PR-4.3-dev
avatar richard67
richard67 - comment - 23 Apr 2023

I don't think this PR is sufficient. In the issue, the not matching schema version was just an example for causing a database error. But the check in the update component includes a complete schema check like it is executed when you go to the database checker in backend. The not matching schema version in the issue was just an easy example how to cause a schema error. But it is not the only possible error. E.g. when you add a new update SQL script to your installation which creates a new table, it would result in a schema error shown by the database checker, and this would block the update in the pre-update checker, too.

avatar alikon alikon - change - 23 Apr 2023
The description was changed
avatar alikon alikon - edited - 23 Apr 2023
avatar alikon
alikon - comment - 24 Apr 2023

see #40468

should do all the schema checks
something like

image

avatar richard67
richard67 - comment - 24 Apr 2023

@alikon See my comment in your new PR.

avatar alikon
alikon - comment - 24 Apr 2023

closing in favour of #40468

avatar alikon alikon - close - 24 Apr 2023
avatar alikon alikon - change - 24 Apr 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-04-24 10:29:06
Closed_By alikon

Add a Comment

Login with GitHub to post a comment