PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar richard67
richard67
12 Apr 2023

Pull Request for Issue # .

Summary of Changes

With the last upmerge from 4.4-dev there have been again added new 4.x update SQL scripts to the 5.0-dev branch.

These files should not be merged up.

This PR here fixes that by deleting the files and adding them to the list of deleted files in script.php so they are deleted when updating from 4.x like it is done with the other 4.x update SQL scripts.

Currently there are no other changes to be done on the deleted files and folders lists in script.php in the 5.0-dev branch.

Testing Instructions

Code review.

Or if you want to make a real test, update the last 4.4 nightly build to the last 5.0 nightly build to get the actual result, and update the last 4.4 nightly build to the update package built by Drone for this PR to get the expected result.

Actual result BEFORE applying this Pull Request

There are two 4.3.0 update SQL scripts present for each kind of database after updating from the last 4.4 nightly build.

Expected result AFTER applying this Pull Request

There are no 4.x update SQL scripts present after updating from the last 4.4 nightly build.

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 12 Apr 2023
Category Administration com_admin SQL Postgresql
avatar richard67 richard67 - open - 12 Apr 2023
avatar richard67 richard67 - change - 12 Apr 2023
Status New Pending
avatar richard67
richard67 - comment - 12 Apr 2023

Ping @HLeithner . Question: Would it help to add the patterns administrator/components/com_admin/sql/updates/mysql/4.*.sql and administrator/components/com_admin/sql/updates/postgresql/4.*.sql to the .gitignore file so that any 4.x update SQL script would be ignored and also not included in builds? If yes and we add that, it would mean we have to change the .gitignore file with every new major version.

avatar richard67 richard67 - change - 12 Apr 2023
The description was changed
avatar richard67 richard67 - edited - 12 Apr 2023
avatar HLeithner
HLeithner - comment - 12 Apr 2023

Ping @HLeithner . Question: Would it help to add the patterns administrator/components/com_admin/sql/updates/mysql/4.*.sql and administrator/components/com_admin/sql/updates/postgresql/4.*.sql to the .gitignore file so that any 4.x update SQL script would be ignored and also not included in builds? If yes and we add that, it would mean we have to change the .gitignore file with every new major version.

I think it's better to keep it as it is, because we need to delete the files in this script file anyway. Maybe a notice/warning/error in the build script could make sense.

avatar HLeithner HLeithner - change - 12 Apr 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-04-12 12:28:46
Closed_By HLeithner
Labels Added: PR-5.0-dev
avatar HLeithner HLeithner - close - 12 Apr 2023
avatar HLeithner HLeithner - merge - 12 Apr 2023

Add a Comment

Login with GitHub to post a comment