Koha-clms/installer/data/mysql
Jonathan Druart 7e3bf82654 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>
(cherry picked from commit da58f3e2c5)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit c720acc3c9)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2021-03-18 21:02:41 +01:00
..
atomicupdate Bug 27252: DBRev 19.11.13.001 2021-01-17 21:50:49 +01:00
de-DE Bug 25448: Update German (de-DE) framework files 2020-09-15 23:27:33 +12:00
en Bug 24339: Add SIP2 payment types for installation 2020-05-08 21:46:47 +00:00
es-ES Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-07 23:01:59 +00:00
fr-CA Bug 24811: French SQL files "news" link fixed 2021-02-08 21:50:23 +01:00
fr-FR Bug 24811: French SQL files "news" link fixed 2021-02-08 21:50:23 +01:00
it-IT Bug 26613: Fix it-IT unimarc_framework.sql installer file 2020-11-17 17:35:36 +13:00
mandatory Bug 14697: (QA follow-up) Add missing AV category 2019-10-31 12:05:21 +00:00
nb-NO Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-07 23:01:59 +00:00
pl-PL Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-02-07 23:01:59 +00:00
ru-RU Bug 24274: Remove field 01e from sql installer files 2020-01-12 18:59:20 +00:00
uk-UA Bug 24274: Remove field 01e from sql installer files 2020-01-12 18:59:20 +00:00
.updatedatabase.pl.swp Bug 26569: Use gender neutral pronouns in system prefernece explanations 2020-11-17 17:29:49 +13:00
account_credit_types.sql Bug 23805: (RM follow-up) Correction to sql installer file 2019-10-25 09:37:25 +01:00
account_debit_types.sql Bug 25010: Fix typo 'rewewal' in debit types 2020-04-29 19:55:16 +00:00
account_offset_types.sql Bug 22521: (QA follow-up) Corrections to tests 2019-04-17 16:49:36 +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 13795: Remove occurences of unused columns in code 2019-04-18 10:05:51 +00:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 24840: [19.11.x] Replace DateTime->now with dt_from_string 2020-05-07 17:17:12 +00:00
kohastructure.sql Bug 18050: move aqbudgetperiods table before aqbudgets, to fix sql error 2020-11-17 18:09:51 +13:00
labels_upgrade.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
patroncards_upgrade.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
sysprefs.sql Bug 27252: Default to cross fields off 2021-01-17 20:46:17 +01:00
update22to30.pl Bug 20000: Use Modern::Perl in installer scripts 2019-02-04 16:57:14 +00:00
updatedatabase.pl Bug 26997: Fix upgrade process under MySQL 8 2021-03-18 21:02:41 +01:00
userflags.sql Bug 22868: Move suggestions_manage subperm out of acquisition perm 2020-02-10 23:08:59 +00:00
userpermissions.sql Bug 24846: Add new permission batch_extend_due_dates 2020-03-23 23:33:36 +00:00