Koha/installer/data/mysql
Jonathan Druart 6b7e17f9fd 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>
2021-07-30 15:54:12 +02:00
..
atomicupdate Bug 28567: Fix 0 vs "" vs undef on the admin library form 2021-07-30 15:54:12 +02:00
en Bug 20472: Add format to sample notices 2021-07-12 15:47:34 +02:00
fr-CA Bug 20472: Update translated AR notices 2021-07-12 15:47:34 +02:00
fr-FR Bug 20472: Update translated AR notices 2021-07-12 15:47:34 +02:00
localization Bug 28108: Replace one remaining occurrence 2021-05-10 15:52:53 +02:00
mandatory Bug 20472: Db rev for new preference ArticleRequestsSupportedFormats 2021-07-12 15:47:34 +02:00
nb-NO Bug 20472: Update translated AR notices 2021-07-12 15:47:34 +02: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 20472: Add kohastructure changes 2021-07-12 15:47:34 +02: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 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
updatedatabase.pl Bug 20472: DBRev 21.06.00.010 2021-07-12 15:47:34 +02:00