Koha-clms/installer/data/mysql
Blou 6f512cff8b Bug 17260: updatedatabase.pl fails on invalid entries in ENUM and BOOLEAN columns
The loading of file admin/searchengine/elasticsearch/mappings.yaml
specifies 'type' as empty, which fails with Mysql 5.7+ which is more
stringent.

Also, forcing an empty value into a boolean also fails.

Both issues arise when updatedatabase.pl hit 3.23.00.050.

NOTE: both issues could also be resolved by actually setting values in
      the load file. This doesn't make this solution incorrect, though.

To Test/reproduce:
-1) Happens with Mysql 5.7.4.  Maybe earlier, but certainly at
    that point. Use a Xenial kohadevbox to more easily test.
0) Find a database on 3.22 or earlier, save it.
    a) place
           sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
       into the [mysqld] section of /etc/mysql/mysql.conf.d/mysqld.cnf
    b) restart you mysql server
    c) drop the db and recreate it
    d) checkout the 3.22.x branch
    e) do a web install
    f) remove the added sql_mode
    g) restart the mysql server
1) Set your code base to master
2) run updatedatabase.pl
3) See the errors on 3.23.00.050
4) Apply the patch
5) Reload the 3.22 db.
   a) repeat steps 0(a)-0(g)
   b) don't forget the caching issues
6) succeed with updatedatabase.pl
7) drop the db and recreate it
8) run the web installer
9) notice no issues either.
10) run koha qa test tools

NOTE: This bug only solved the upgrade portion.
      I added the kohastructure.sql change as well.
      I confirmed that all the code changes were
      triggered with this test plan.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Mehdi Hamidi <mehdi.hamidi@inlibro.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 77337a2ab5)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
2017-03-12 23:04:04 +01:00
..
atomicupdate Bug 8835 - DBRev 16.06.00.050 2016-11-22 17:45:35 +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-12-04 22:03:12 +01:00
es-ES Bug 17577: Improve sample notices for article requests 2016-12-04 22:03:12 +01:00
fr-CA Bug 17469: Fix number of values 2017-01-22 20:21:01 +01:00
fr-FR Bug 17577: Improve sample notices for article requests 2016-12-04 22:03:12 +01:00
it-IT Bug 17577: Improve sample notices for article requests 2016-12-04 22:03:12 +01: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-12-04 22:03:12 +01:00
pl-PL Bug 17577: Improve sample notices for article requests 2016-12-04 22:03:12 +01:00
ru-RU Bug 17577: Improve sample notices for article requests 2016-12-04 22:03:12 +01: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 17260: updatedatabase.pl fails on invalid entries in ENUM and BOOLEAN columns 2017-03-12 23:04:04 +01: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 17913: [16.11.x] Add syspref to sysprefs.sql 2017-02-19 22:18:22 +01:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 17260: updatedatabase.pl fails on invalid entries in ENUM and BOOLEAN columns 2017-03-12 23:04:04 +01: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