Upgrade Mantisbt from 1.0.5. to 2.26.0
Posted: 28 Nov 2023, 13:18
[/issue]Hello,
I am trying to upgrade Mantisbt from very old version 1.0.5 to current version 2.26.0.
Server is current version WAMP server on my notebook.
Pre-Installation Check is OK, all conditions GOOD.
I can generate SQL update script with "Print SQL Queries instead of Writing to the Database" enabled ON.
When I run upgrade, update process ends after Step 76, NO ERROR SO FAR.
From Schema step 77 update process doesn´t continue. Manual insert into mantis_plugin_table is OK.
When I run the upgrade repeatedly via http://localhost/mantisbt-2.26.0/admin/index.php , there is an error:
APPLICATION ERROR #401
The request to the database failed. Database error #1054: Unknown column 'priority' in 'field list' when requesting: SELECT basename, priority, protected
FROM mantis_plugin_table
WHERE enabled=?
ORDER BY priority DESC.
To return to the previous page, please use the "Back" button in your browser. You can then fix all the problems described in this error or choose another operation. You can also click on an option from the menu bar to go to a new section.
Previous non-fatal errors occurred. Page contents follow.
SQL Statement failed on preparation: SELECT basename, priority, protected FROM mantis_plugin_table WHERE enabled=? ORDER BY priority DESC'
Table mantis_plugin_table has only 1 row - basename, priority, protected, enabled = MantisCoreFormatting, 3, 0, TRUE
When I run SQL update SCRIPT MANUALLY without (=PHP functions in ), there are 3 errors, when I disable these steps, the script runs to the end:
-- Schema step 85
ALTER TABLE mantis_bug_revision_table ADD INDEX idx_bug_rev_id_time (bug_id, timestamp);
-- index exists
-- Schema step 159
ALTER TABLE mantis_bug_revision_table ADD INDEX idx_bug_rev_id_time (bug_id, timestamp);
-- index exists
-- Schema step 86
ALTER TABLE mantis_bug_revision_table ADD INDEX idx_bug_rev_type (type);
-- index exists
See update script in the attachment.
Please help me with update process, my questions:
1. How to identify why update script unexpectedly ends at Steps 76, no error?
2. How to continue in update process (run repeatedly) - I need to run PHP functions to fill database...
3. How to avoid Steps 85, 159, 86 - Steps numbers are changing...
THANK YOU VERY MUCH for your kind help.
Ludo.
I am trying to upgrade Mantisbt from very old version 1.0.5 to current version 2.26.0.
Server is current version WAMP server on my notebook.
Pre-Installation Check is OK, all conditions GOOD.
I can generate SQL update script with "Print SQL Queries instead of Writing to the Database" enabled ON.
When I run upgrade, update process ends after Step 76, NO ERROR SO FAR.
From Schema step 77 update process doesn´t continue. Manual insert into mantis_plugin_table is OK.
When I run the upgrade repeatedly via http://localhost/mantisbt-2.26.0/admin/index.php , there is an error:
APPLICATION ERROR #401
The request to the database failed. Database error #1054: Unknown column 'priority' in 'field list' when requesting: SELECT basename, priority, protected
FROM mantis_plugin_table
WHERE enabled=?
ORDER BY priority DESC.
To return to the previous page, please use the "Back" button in your browser. You can then fix all the problems described in this error or choose another operation. You can also click on an option from the menu bar to go to a new section.
Previous non-fatal errors occurred. Page contents follow.
SQL Statement failed on preparation: SELECT basename, priority, protected FROM mantis_plugin_table WHERE enabled=? ORDER BY priority DESC'
Table mantis_plugin_table has only 1 row - basename, priority, protected, enabled = MantisCoreFormatting, 3, 0, TRUE
When I run SQL update SCRIPT MANUALLY without (=PHP functions in ), there are 3 errors, when I disable these steps, the script runs to the end:
-- Schema step 85
ALTER TABLE mantis_bug_revision_table ADD INDEX idx_bug_rev_id_time (bug_id, timestamp);
-- index exists
-- Schema step 159
ALTER TABLE mantis_bug_revision_table ADD INDEX idx_bug_rev_id_time (bug_id, timestamp);
-- index exists
-- Schema step 86
ALTER TABLE mantis_bug_revision_table ADD INDEX idx_bug_rev_type (type);
-- index exists
See update script in the attachment.
Please help me with update process, my questions:
1. How to identify why update script unexpectedly ends at Steps 76, no error?
2. How to continue in update process (run repeatedly) - I need to run PHP functions to fill database...
3. How to avoid Steps 85, 159, 86 - Steps numbers are changing...
THANK YOU VERY MUCH for your kind help.
Ludo.