Koha-clms/installer/data/mysql
Jonathan Druart da58f3e2c5 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>
(cherry picked from commit 3c087bc216)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2021-02-25 10:23:37 +01:00
..
atomicupdate Bug 18506: DBRev 20.11.03.001 2021-02-25 10:11:48 +01:00
en Bug 25632: Update MARC21 frameworks to update Nr. 30 (May 2020) 2021-02-12 14:38:14 +01:00
fr-CA Bug 24811: French SQL files "news" link fixed 2021-01-29 14:29:05 +01:00
fr-FR Bug 24811: French SQL files "news" link fixed 2021-01-29 14:29:05 +01:00
it-IT Bug 27103: Remove HOLD_CANCELLATION notice 2020-11-27 13:00:38 +01:00
localization Bug 20168: Remove li tags from OPACSearchForTitleIn for new installs 2020-09-09 14:33:45 +02:00
mandatory Bug 25552: Add missing Claims Returned option to MarkLostItemsAsReturned 2021-02-05 17:17:07 +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 11996: (follow-up) Updating the uk-UA currency 2021-01-29 14:20:31 +01:00
uk-UA Bug 11996: (follow-up) Updating the uk-UA currency 2021-01-29 14:20:31 +01:00
backfill_statistics.pl Bug 13795: Remove occurences of unused columns in code 2019-04-18 10:05:51 +00:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 24840: Replace DateTime->now with dt_from_string 2020-04-08 11:54:23 +01:00
kohastructure.sql Bug 24083: (follow-up) Respond to QA feedback 2020-11-11 16:09: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-25 10:23:37 +01:00