[4.0] Work around SQL template bug while upgrade#30369
[4.0] Work around SQL template bug while upgrade#30369Fedik wants to merge 5 commits intojoomla:4.0-devfrom
Conversation
|
Sorry that's not a solution, then better revert the child template pr or write a manual beta4 upgrade path description. Having this code till 5.0 or 6.0 or what ever version shouldn't be the target. |
|
Hmm, to me it doesn't look that bad, I would be ok with it, and updates from 4.0 Beta n (n < 4) to Beta 4 would work again. Let's see what @wilsonge says. |
hm why, any drawback? I mean a "real" 😉
till 5.0, no need longer 😉 |
Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Clean code instead of patchwork and workarounds that will be broken by the next workaround?
That's would only be true if we have again a 4.10 (or what ever version) which need to be updated between 3.10 and 5.0. Which shouldn't be needed. |
|
A clean code is good of course, but it not really a technical drawback. Well, about how long it should stay, it depend from how the update process will evolve. |
|
@Fedik I've pimped the testing instructions a bit. |
|
@ceford Could you test this one here? Thanks in advance. |
|
I don't see how I can test this patch. My J4 Bet4-Dev site has already been updated so I can't just delete those two columns. I am not in a position to revert to yesterday. Sorry - just not enough experience. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30369. |
@ceford Sorry, I didn't know that. All ok. |
|
I tested with an older J4 Install - the admin side works but the site throws a 500 error. Those two columns are still not in the template_styles table. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30369. |
@ceford Could you change yoru testing result back to "not tested"? Thanks in advance. It's right, this PR doesn't add back the columns. |
|
Deleted successful test and changed comment on result of my test. |
|
hm, I see, I thought that was reverted 3.10 backport , but it was 4.0 path, |
|
Hello, |
|
Hi Richard, thanks a lot! Now all is working fine ;-) |
|
@jonasreinsch333 If you have done changes in PHP code like in this PR here, revert those changes, they are not needed anymore after the SQL correction. |
|
Thanks for the hint! I will try it. |
Pull Request for Issue #30333 #30363 #30365 and much others
Summary of Changes
Use asterisk to load template style, for AdministratorApplication
Testing Instructions
Result: Update crashes with SQL error about not existing database column "s.inheritable".
Result: Update succeeds.
Actual result BEFORE applying this Pull Request
Update crashes
Expected result AFTER applying this Pull Request
Update is okay