Koha/installer/data/mysql
Blou acf425bbbc Bug 17234 - updatedatabase.pl's ALTER IGNORE break with mysql 5.7.4+
The doc says: "As of MySQL 5.7.4, the IGNORE clause for ALTER TABLE is removed and its use produces an error."
This fix replaces ALTER IGNORE with ALTER in updatedatabase.pl

To TEST, try an upgrade from 3.18 to 3.22 after installing the latest mysql (at least 5.7.4, by the doc).
Some will fail with error

DBD::mysql::db do failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE TABLE aqbasket
            ADD KEY authorisedby (authorisedby)' at line 1 [for Statement "
        ALTER IGNORE TABLE aqbasket
            ADD KEY authorisedby (authorisedby)
    "] at ./installer/data/mysql/updatedatabase.pl line 10563.

0) Find a database on 3.18, save it.
1) Set your code base to 3.22(or master)
2) run updatedatabase.pl
3) See the errors.
4) Apply the patch
5) Reload the 3.18 database
6) succeed with updatedatabase.pl

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2017-01-11 10:52:09 +00:00
..
atomicupdate Bug 17767 - DBRev 16.12.00.001 2016-12-28 13:59:03 +00:00
de-DE Bug 17543: Update German web installer sample files for 16.11 2016-11-18 15:55:03 +00:00
en Bug 17577: Improve sample notices for article requests 2016-11-29 17:45:44 +00:00
es-ES Bug 17577: Improve sample notices for article requests 2016-11-29 17:45:44 +00:00
fr-CA Bug 17577: Improve sample notices for article requests 2016-11-29 17:45:44 +00:00
fr-FR Bug 17577: Improve sample notices for article requests 2016-11-29 17:45:44 +00:00
it-IT Bug 17577: Improve sample notices for article requests 2016-11-29 17:45:44 +00:00
mandatory Bug 17518: Displayed language name for Czech is wrong 2016-11-02 11:00:35 +00:00
nb-NO Bug 17577: Improve sample notices for article requests 2016-11-29 17:45:44 +00:00
pl-PL Bug 17577: Improve sample notices for article requests 2016-11-29 17:45:44 +00:00
ru-RU Bug 17577: Improve sample notices for article requests 2016-11-29 17:45:44 +00:00
uk-UA Bug 17576: Add housebound mandatory auth_values. 2016-11-18 13:55:23 +00:00
audio_alerts.sql Bug 11431: (QA followup) Make audio alerts sql top level 2015-11-04 12:33:53 -03:00
backfill_statistics.pl Bug 16011: $VERSION - Remove comments 2016-03-24 17:20:29 +00:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 17135: [QA Follow-up] Changes as to reporting 2016-09-16 10:47:03 +00:00
kohastructure.sql Bug 17767: Add borrower_modification.extended_attributes 2016-12-28 13:53:01 +00:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 17391: Fix number of values in sysprefs.sql 2016-11-22 11:36:07 +00:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 17234 - updatedatabase.pl's ALTER IGNORE break with mysql 5.7.4+ 2017-01-11 10:52:09 +00:00
userflags.sql Bug 13632: Populate user_flags and permissions tables in the web installer 2015-10-19 09:38:04 -03:00
userpermissions.sql Bug 17663: Forgotten userpermissions from bug 14686 2016-11-21 16:33:16 +00:00