Koha-clms/installer/data/mysql
Jonathan Druart a844a2211f Bug 28567: Fix 0 vs "" vs undef on the admin library form
There are two things here:
* Branches.pickup_location has a default = 1 in DB, we should not set to undef if 0
or it will be set to 1 when stored.
* The other fields are all text (varchar, mediumtext or longtext) and
can be NULL. They are correct set to NULL when a new library is created
but set to an empty string when the library is modified. That's not
consistent

Test plan:
0. Don't apply the patch
1. Create a new library, set pickup location to "No"
2. Save
=> Pickup location is set to YES
=> In DB notice that the different values you didn't fill in are set to
NULL
3. Edit the library
4. Save
=> In DB notice that the different values you didn't fill in are now set
to an empty string
5. Apply the patch, restart_all
6. Run the updatedatabase script
=> In DB all the empty string values are set to NULL
7. Repeat 1 to 4 and confirm that everything is now working as expected

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-08-06 08:14:52 -04:00
..
atomicupdate Bug 28567: Fix 0 vs "" vs undef on the admin library form 2021-08-06 08:14:52 -04:00
en Bug 28490: Revert "Bug 26995: Remove occurrences in sample_patrons.yml" 2021-06-18 07:47:34 -04:00
fr-CA Bug 16486: Display the timestamp when an accountline is updated 2021-05-06 15:52:41 +02:00
fr-FR Bug 16486: Display the timestamp when an accountline is updated 2021-05-06 15:52:41 +02:00
localization Bug 28108: Replace one remaining occurrence 2021-05-10 15:52:53 +02:00
mandatory Bug 26205: Add logging of news items 2021-07-09 08:35:42 -04:00
nb-NO Bug 16486: Display the timestamp when an accountline is updated 2021-05-06 15:52:41 +02: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 24434: Add 'WrongTransfer' to cancellation_reasons 2021-06-18 10:37:17 -04: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 Increment version for 21.05.02 release 2021-07-30 08:14:21 -04:00