Koha/installer/data/mysql
Marcel de Rooy fb41768d9f Bug 27253: (follow-up) Fix UNIXTIME(0) in db_revs/211200037.pl
MariaDB [koha_myclone]> update borrowers set updated_on=COALESCE( NULL, FROM_UNIXTIME(0) ) where borrowernumber=51;
ERROR 1292 (22007): Incorrect datetime value: '1970-01-01 00:00:00' for column `koha_myclone`.`borrowers`.`updated_on` at row 1

MariaDB [koha_myclone]> update borrowers set updated_on=COALESCE( NULL, FROM_UNIXTIME(1) ) where borrowernumber=51;
Query OK, 1 row affected (0.008 sec)
Rows matched: 1  Changed: 1  Warnings: 0

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tested by switching updated_on to datetime. Remove NOT NULL, etc.
Copied dbrev to atomicupdate folder.
Resulted in:
    Updated all NULL values of borrowers.updated_on to GREATEST(date_renewed, dateenrolled, lastseen): 51 rows updated

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-04-25 10:00:22 -10:00
..
atomicupdate Bug 27253: DBRev 21.12.00.037 2022-04-21 21:01:09 -10:00
db_revs Bug 27253: (follow-up) Fix UNIXTIME(0) in db_revs/211200037.pl 2022-04-25 10:00:22 -10:00
en Bug 30373: Fix xt/find-license-problems.t 2022-04-22 10:02:52 -10:00
fr-FR Bug 30237: (follow-up) Add french sample notice 2022-04-20 09:03:39 -10:00
localization Bug 27622: Add stuffs to custom.sql 2021-10-07 15:49:01 +02:00
mandatory Bug 30373: Add TYPEDOC authorised_values_category 2022-04-21 13:41:35 -10:00
backfill_statistics.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
kohastructure.sql Bug 28786: Add new DB column borrowers.auth_method 2022-04-20 20:43:15 -10: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 29180: (QA follow-up) Don't alter old DB up date 2021-11-05 12:13:25 +01:00
updatedatabase.pl Bug 28263: Fix too_many auto renewal message 2021-11-02 16:50:01 +01:00