So, here's a report that I have although I continue to seek solution to this and one other issue I found.
In the original update of a database that had been built using ZC 1.5.5b, but is now being reported as needing an upgrade to version 1.5.5 from 1.5.4 (hadn't upgraded the software necessarily to ZC 1.5.5f), so when I ran zc_install on this restored database I was advised that needed to first upgrade to ZC 1.5.5 from 1.5.4 before upgrading to ZC 1.5.6.
The next thing seen in that update was that a table which had a field of type date and a default of NULL. When attempting to do the upgrade there was a message in the install log that one of the records had an incorrect date value (plugin related) with the value being '0000-00-00 00:00:00', When I changed the saved data to '0001-01-01 00:00:00' and again ran zc_install, then I was presented with a new/different problem.
The newer problem was that the install log identified:
Code:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]MySQL error 1146 encountered during zc_install:
Table 'DB_DATABASE.languages' doesn't exist
LEFT JOIN languages l ON 1;[/FONT]
note that DB_DATABASE was used above in place of the actual database name. The issue is that the dataset does use a DB_PREFIX which wasn't appended to the zc_install line in processing the left join code. This is something related to the zc_install process and formation of the sql statement in this area. Looking into that now.
Yup, unfortunately there is an expectation that LEFT JOIN is a function that exists and handles the condition; however, the parserLeftJoin function does not exist and therefore the prefix for the database does not get added when calling this line of the database upgrade. What this means is that right now for a site that has a DB_PREFIX and ezpages that they will be lost in the upgrade.
So, I've prepped a few modifications for incorporation to address the easier things in the zc_install process. Still need to come up with a convenient way to address possibilities where a date or datetime field perhaps are set to allow being null but then have an entry of '0000-00-00' instead of null or the ZC '0001-01-01'. DrByte has gone ahead and added at least one field that was found to be consistently an issue, I'm trying to figure out how/why the field I came across is logged that way so that can prevent any future attempts, but another thing that may help in this matter is the zc_install process reporting one or more of the issues encountered or an improved method to not initiate an action based on some previous response... really this database issue that is in a way unrelated with the actual operations is a kicker...
Anyways, my github submission for part of the issues identified/seen: https://github.com/zencart/zencart/pull/1981
The files or edits to them are: https://github.com/zencart/zencart/pull/1981/files
This is still under review by the admin's. I believe I resolved the issue of the ezpage data not being copied at least for databases that use a DB_PREFIX.
Also, there may be more data logged as a result of correcting a filename reference in a couple of spots.
Really sorry for this rambling, it's been broken up over several hours and I want to move on to something else.
Bookmarks