? Pending

User tests: Successful: Unsuccessful:

avatar twister65
twister65
2 May 2020

Summary of Changes

Add the parameter IF EXISTS after DROP INDEX.

Testing Instructions

Update Joomla! from version 3.9.15 or older.

Expected result

No error.

Actual result

The update with postgresql throws an error.

avatar twister65 twister65 - open - 2 May 2020
avatar twister65 twister65 - change - 2 May 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 May 2020
Category Postgresql SQL Administration com_admin
avatar richard67
richard67 - comment - 2 May 2020

Hint for testers: For testing this PR you can use the update package built for this PR by our checkin tools (Drone). You can find update packages and at the bottom a cutom update URL at following page: https://ci.joomla.org/artifacts/joomla/joomla-cms/staging/28902/downloads/31730/.

avatar richard67
richard67 - comment - 2 May 2020

@twister65 Your PR looks right to me, and I've just checked that the database checker can handle the "IF EXISTS" for the index. But I can't reproduce the issue without your PR. Just updated a 3.9.15 to 3.9.18 using PostgreSQL 10, and I did not get any SQL error in the logfile or the UI. Can it depend on server settings if I get an error or not? Or does the problem only happen for certain versions, or installations with a certain update history?

avatar richard67
richard67 - comment - 2 May 2020

I have tested this item successfully on 4a5ef7f

I couldn't reproduce the issue with updating a 3.9.15 to 3.9.18, but this may depend on the update history of a particular installation.

The change in this PR is correct and makes updating more safe, and I've verified that the database schema checker can handle "DROP INDEX IF EXISTS" for PostgreSQL.

For testing the update with this PR applied I've used the custom update URL for the update package built for this PR by drone.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28902.

avatar richard67 richard67 - test_item - 2 May 2020 - Tested successfully
avatar alikon
alikon - comment - 3 May 2020

I have tested this item successfully on 4a5ef7f


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28902.

avatar alikon alikon - test_item - 3 May 2020 - Tested successfully
avatar alikon alikon - change - 3 May 2020
Status Pending Ready to Commit
avatar alikon
alikon - comment - 3 May 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28902.

avatar HLeithner HLeithner - change - 3 May 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-05-03 08:14:52
Closed_By HLeithner
Labels Added: ?
avatar HLeithner HLeithner - close - 3 May 2020
avatar HLeithner HLeithner - merge - 3 May 2020
avatar HLeithner
HLeithner - comment - 3 May 2020

Thanks

Add a Comment

Login with GitHub to post a comment