Koha-clms/installer
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
..
data/mysql Bug 26997: Fix upgrade process under MySQL 8 2021-02-25 10:23:37 +01:00
externalmodules.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
html-template-to-template-toolkit.pl Bug 25360: (follow-up) Remove the https FIXME in Auth.pm 2020-09-03 10:40:35 +02:00
install.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
onboarding.pl Bug 14866: Make high holds work with different item types 2020-11-06 15:55:17 +01:00