Koha/installer/data/mysql
Jonathan Druart 3c087bc216 Bug 26997: Fix upgrade process under MySQL 8
If you are coming from an old version of Koha, you may face an upgrade
error for the SQL query using 0000-00-00.
The idea was to fix it, but actually the DBMS will raise an error (not
blocking the upgrade process however).

We can hide them to not cause confusion

Errors are like:
DBD::mysql::db do failed: Incorrect date value: '0000-00-00' for column 'suggesteddate' at row 1 [for Statement "UPDATE suggestions SET suggesteddate = '1970-01-01' WHERE suggesteddate = '0000-00-00';"] at /kohadevbox/koha/installer/data/mysql/updatedatabase.pl line 23312.

Test plan:
Checkout an old version of Koha (3.20, not older)
Insert a dump, install Koha
Checkout a recent version of Koha, apply the patch (or use master)
Execute the upgrade process
You should not see the errors

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-23 13:07:49 +01:00
..
atomicupdate Bug 24108: DBRev 20.12.00.013 2021-02-17 16:29:30 +01:00
en Bug 25632: Update MARC21 frameworks to update Nr. 30 (May 2020) 2021-02-08 14:56:00 +01:00
fr-CA Bug 24811: French SQL files "news" link fixed 2021-01-22 13:49:25 +01:00
fr-FR Bug 27491: Rename system preference opaclanguages to OPACLanguages 2021-01-22 14:59:27 +01:00
it-IT Bug 27103: Remove HOLD_CANCELLATION notice 2020-11-27 13:00:38 +01:00
localization Bug 27581: (QA follow-up) Fix occurence in it-IT custom.sql 2021-02-08 14:56:00 +01:00
mandatory Bug 24108: (QA follow-up) Add missing comma in sysprefs.sql 2021-02-17 16:28:25 +01:00
nb-NO Bug 27103: Remove HOLD_CANCELLATION notice 2020-11-27 13:00:38 +01:00
pl-PL Bug 27103: Remove HOLD_CANCELLATION notice 2020-11-27 13:00:38 +01:00
ru-RU Bug 27491: Rename system preference opaclanguages to OPACLanguages 2021-01-22 14:59:27 +01:00
uk-UA Bug 11996: (follow-up) Updating the uk-UA currency 2021-01-22 13:46:42 +01:00
backfill_statistics.pl
fix_unclosed_nonaccruing_fines_bug17135.pl
kohastructure.sql Bug 26947: Remove AUTO_INCREMENT 2021-01-12 12:31:58 +01:00
labels_upgrade.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
patroncards_upgrade.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
update22to30.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
updatedatabase.pl Bug 26997: Fix upgrade process under MySQL 8 2021-02-23 13:07:49 +01:00