Repository navigation
how to upgrade to the latest build #1045
Replies: 3 comments 5 replies
|
Hello @srdjanm-ca , thank you for your report and I'm sorry to hear you encountered issues upgrading. What is your condition now? Are you able to keep using your v5.0.0+31 database and existing code? I suspect your database schema is not what the installer scripts expected for some reason and possibly the first update script error resulted in the subsequent failures. My suggestion would be to 1) dump the schema from your database, 2) create a new database using the installer (with your working version of code), 3) dump the schema from the new database and then 4) compare the two. I haven't done this before myself, but I believe if you dump only the schemas (do not include the data), the output will be understandable comparing the two dumps (e.g. using diff, windiff, Compare in Notepad++ or similar tool) and differences should be clearly recognisable. Please post your progress so we can try to offer further help. Best wishes, |
|
I'm now on a new quest migrating data from 4.15.2 to the latest one, 5.0.1 build 72. The upgrade failed with 5 errors. Here is the print: I manually executed, created hrperfcriteriascores table, no problem. I think that the reason for: "The column stockid could not be changed" is in In file |
|
I have identified the following issues when migrating from 4.15.2 to 5.01v72. I tested it on MariDB 11.8.6 on deb13 I also had to changed two files: Hope this will help with migration to some. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I did upgrade v5.0.0+31 to +74 and got 3 updates have errors. This should fixed in the script:
The constraint stockitemnotes_ibfk_1 could not be added
ALTER TABLE stockitemnotes ADD CONSTRAINT stockitemnotes_ibfk_1 FOREIGN KEY (stockid) REFERENCES stockmaster (stockid)
The table hrperfcriteriascores could not be created
The constraint suppliernotes_ibfk_1 could not be added
ALTER TABLE suppliernotes ADD CONSTRAINT suppliernotes_ibfk_1 FOREIGN KEY (supplierid) REFERENCES suppliers (supplierid)
executing command line sql:
ALTER TABLE stockitemnotes ADD CONSTRAINT stockitemnotes_ibfk_1 FOREIGN KEY (stockid) REFERENCES stockmaster (stockid)
returns:
ERROR 1005 (HY000): Can't create table
canadainc501.stockitemnotes(errno: 150 "Foreign key constraint is incorrectly formed")MariaDB
All reactions