-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More corrections for schema updates #37
More corrections for schema updates #37
Conversation
This corrects some, but it seems there are more errors when updating on PostgreSQL. Trying to sort out what is related to the backend-template. |
I've just noticed another issue but that's not coming from the backend template, the backend template only fell into the same trap as PR joomla#24801 did: They update existing menu items by their id, but on updated systems, especially such with a long update history this will fail. So the 4.0.0-2019-05-05.sql which seems to cause some of the problems I've observed when testing updates with the backend template should be corrected later in 4.0-dev in the CMS. I'll continue to check the schema updates of the backend template, but my other PR here with changes to joomla.sql could be merged anyway. |
I think this PR here is ready for merge now. MySQL and PostgreSQL update tests have same result now. There are still issues but I think they are not related to the backend template PR as such. |
Ah, wait, maybe I have more changes for the schema updates. |
Hmm, no, is ok, that was all. |
Both on MySQL and PostgreSQL, the views |
But I get notices after update when loggin in for the first time after an update:
7 times. That's maybe not related to the backend template, have to test further. |
Anyway this PR here can be merged, just reported back issues here for internal discussion beside of the big discussion in the CMS PR. |
The reason why the help and the system views are empty (see my comment above) could be that for the module |
@bembelimen @wilsonge Guys I have found the reason: The admin module mod_submenu is still in script.php among the old files to be deleted. |
PR for comment above is PR #40 |
update from staging is not supported at this time. |
@brianteeman This is wrong!! @wilsonge please confirm. |
I stand by my statement |
@brianteeman Ask Geogre if you don't believe me. He had merged one PRs to make that work and the backend template breaks this without my changes. |
@brianteeman See my comment here: #40 (comment). Please read and think over. |
The aim for the next alpha will work upgrading from 3.9.x to j4 loosely (it's not going to be all pixel perfect etc. but the base upgrade should work). That's why I've fixed the sql scripts since the last alpha and regenerated the deleted file checks and got @richard67 to do the db upgrade. If we are creating upgrade files they absolutely should work - obviously right now it's harder to test |
[Cypress] Fix api test for module types site
Pull Request (PR) for joomla#25570.
Summary of Changes
In the schema update
4.0.0-2019-07-13.sql
for PostrgeSQL, someRETURNING id INTO lastmoduleid
were missing, see also my previous, closed PR Add some forgottenRETURNING id INTO lastmoduleid
to schema update for PostrgeSQL #36 . But meanwhile I've noticed that thisRETURNING id INTO lastmoduleid
was causing SQL syntax errors anyway. I've replaced that with another method to get the last inserted id by the sequence number, so theRETURNING
clauses are not needed anymore.The records added to the modules table with the schema updates are not consistent with the same records in joomla.sql for new installation.
Testing Instructions
For item 1: Code review, or update staging to a modified 4.0-dev + backend-template on a PostgreSQL database and check with PhpPgAdmin that for each of the new modules there is also a record in the
#__modules_menu
table (I've tested like that).For item 2: Code review.