? Pending

User tests: Successful: Unsuccessful:

avatar shur
shur
24 May 2016

Pull Request for Issue #10611

Summary of Changes

Old update site names renamed.

Testing Instructions

Install fresh Joomla 3.3.0
Update to Joomla 3.6.0
Go to database #__update_sites table

without PR we have:
update_sites_j330-to-j360

after PR we have the same lines as in freshly installed Joomla 3.6.0:
update_sites_j330-to-j360_pr

avatar shur shur - open - 24 May 2016
avatar shur shur - change - 24 May 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 May 2016
Labels Added: ?
avatar Bakual Bakual - change - 24 May 2016
Milestone Added:
avatar Bakual Bakual - change - 24 May 2016
Labels Added: ?
avatar shur shur - change - 24 May 2016
The description was changed
avatar Bakual
Bakual - comment - 24 May 2016

PR looks fine from review.
I have added the release-blocker label as it should go into 3.6.0. If not, we can as well close it ????

avatar wojsmol
wojsmol - comment - 24 May 2016
avatar brianteeman brianteeman - change - 24 May 2016
Category Installation SQL
avatar Bakual
Bakual - comment - 24 May 2016

@wojsmol Doesn't look related to this issue here.

avatar wojsmol
wojsmol - comment - 24 May 2016

@Bakual see the discussion from #9579 (comment) mainly between @richard67 and @andrepereiradasilva

avatar richard67
richard67 - comment - 24 May 2016

Yeah, that's a know problem with database fixer, that it does not handle insert/update/delete statements (DML). So those changes will not be applied when not using Joomla! Update Component but one of the "copy or extract the files and then use the db fixer" methos.

A solution could be to collect changes which can be applied always without doing any harm, like those in this PR or those by @andrepereiradasilva for changing update urls to https, in a separate sql script which would be run at the end of a db fix in any case. I currently am waiting for feedback by @wilsonge from PLT discussion about other stuff related to udpating problems (timeout errors), maybe he can discuss that idea, too.

Also a solution as alternative or in addition to a special script could be to have a button "Finalise Update" in the db fixer view, which can be used after one of these update methods I mentioned to run the schema updates if their file version in greater than the schema version in db, or to extend the function for the existing Fix button by running them if schema version in db is not equal to the youngest schema update file.

For now people who make PRs like this or andre's have to live with that like it is now, because that is the official way to provide such DB updates.

As long as not everybody has a 3.6 or later where the new update functions are included, some people will need these update methods I mentioned and so they can not be abandoned, and so something has to be done as soon as possible.

avatar mbabker
mbabker - comment - 24 May 2016

A solution could be to collect changes which can be applied always without doing any harm, like those in this PR

The ones in this PR are probably harmless, but frankly there are some INSERT/UPDATE statements we've shipped that have broken tables (i.e. every INSERT to the menu table has broken the nested set structuring). So I wouldn't even call all the DML statements "safe".

avatar Bakual
Bakual - comment - 24 May 2016

It's actually not a known "problem". The database fix just isn't supposed to run those statements.
The problem is more running an unsupported update path, which is manually updating the files and running database fix. This is actually a hackish way to update Joomla.
The supported paths running through com_joomlaupdate will take care of those insert/update/delete statements just fine.

I don't think we need to change anything in the database fix method to support that hackish update method.

avatar richard67
richard67 - comment - 24 May 2016

@mbabker Sure, only such statements which do not do any harm I meant, not ALL DML.

avatar andrepereiradasilva andrepereiradasilva - test_item - 26 May 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 26 May 2016

I have tested this item successfully on c111a94

on code review


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

avatar wilsonge wilsonge - change - 26 May 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-26 13:24:44
Closed_By wilsonge
avatar wilsonge wilsonge - close - 26 May 2016
avatar wilsonge wilsonge - merge - 26 May 2016
avatar wilsonge wilsonge - close - 26 May 2016
avatar wilsonge wilsonge - change - 8 Jun 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment