[Bug 11623] New: Errors with upgrade from 3.00.00.070 to 3.14.02.000
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11623 Bug ID: 11623 Summary: Errors with upgrade from 3.00.00.070 to 3.14.02.000 Change sponsored?: --- Product: Koha Version: 3.14 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Installation and upgrade (web-based installer) Assignee: koha-bugs@lists.koha-community.org Reporter: dswhite42@yahoo.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com There are a number of database upgrade errors that take place when upgrading from 3.00.00.070 to 3.14.02.000 * A number of upgrades expect the tables to have foreign keys and be in InnoDB format. In 3.00.00.070, MyISAM (and no foreign keys) is the standard. With no testing to see if the keys exist, these commands fail with (errno: 152) Problem examples: ALTER TABLE issues DROP FOREIGN KEY `issues_ibfk_1` ALTER TABLE issues DROP FOREIGN KEY `issues_ibfk_2` ALTER TABLE `message_transports` DROP FOREIGN KEY `message_transports_ibfk_3` ALTER TABLE patronimage DROP FOREIGN KEY patronimage_fk1 * In updatedatabase.pl, in the section for DBVersion 3.00.00.091, there are references to the @sql_scripts "installer/data/mysql/en/optional/sample_notices_message_attributes.sql" and "installer/data/mysql/en/optional/sample_notices_message_transports.sql" . These should be "installer/data/mysql/en/mandatory/sample_notices_message_attributes.sql" and "installer/data/mysql/en/mandatory/sample_notices_message_transports.sql" * Even when that's corrected, the sample_notices_message_transports.sql script fails because it references foreign keys to the "letters" table that have not been created yet. The reserves/HOLD combo isn't created until the 3.01.00.05 section of the updatedatabase.pl script, and circulation/CHECKIN and circulation/CHECKOUT are not created until the 3.01.00.013 section. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11623 --- Comment #1 from David White <dswhite42@yahoo.com> --- I'll just add my own workarounds to these: * Convert everything to InnoDB prior to running the upgrade script. * Of these ALTER TABLE DROP FOREIGN KEY errors, the only one that seems to actually generate a red warning message is the patronimage one. I solved this by pre-creating the "patronimage" table with the patronimage_fk1 foreign key, so the script can happily drop it * Rewrote the /optional/ pathnames to /mandatory/ * Altered the sample_notices_message_transports.sql to delete these lines: (4, 'email', 0, 'reserves', 'HOLD') (4, 'sms', 0, 'reserves', 'HOLD') (5, 'email', 0, 'circulation', 'CHECKIN') (5, 'sms', 0, 'circulation', 'CHECKIN') (6, 'email', 0, 'circulation', 'CHECKOUT') (6, 'sms', 0, 'circulation', 'CHECKOUT') These will allow the script to run at the right time, and the 6 lines above will be created later by updatedatabase.pl later in the script anyway (when the appropriate entries in the 'letters' table have also been created). -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11623 --- Comment #2 from David White <dswhite42@yahoo.com> --- Sorry, one other bug: * When attempting to run "misc/maintenance/remove_items_from_biblioitems.pl", a number of SQL statements fail because C4/Biblio.pm tries to update columns that don't exist in 3.00.00.070 . Specifically, any attempt to "UPDATE biblioitems" that refers to the "ean" and "agerestriction" column fails. * workaround: temporarily remove references to those columns in C4/Biblio.pm, and restore them after "remove_items_from_biblioitems.pl" has completed. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11623 Liz Rea <liz@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |In Discussion CC| |liz@catalyst.net.nz --- Comment #3 from Liz Rea <liz@catalyst.net.nz> --- Probably we'll keep this around (and open) for posterity, but I suspect that we won't be fixing these issues. Thanks for adding your workarounds, they will probably help someone else someday! -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11623 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |indradg@gmail.com -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org