Koha-clms/installer/data/mysql
Mark Tompsett db695c4aed Bug 17324: Deal with branchcode NULL issue
In a database update we alter the letter table, making a column
(branchcode) not be able to contain NULL values.
However if it already does, this SQL fails. So before changing the
column we change the NULL values

[Tue Sep 20 19:08:10 2016] updatedatabase.pl: DBD::mysql::db do failed:
Invalid use of NULL value [for Statement "
[Tue Sep 20 19:08:10 2016] updatedatabase.pl: ALTER TABLE letter MODIFY
COLUMN branchcode varchar(10) NOT NULL DEFAULT ''
[Tue Sep 20 19:08:10 2016] updatedatabase.pl: "] at
/home/mtompset/kohaclone/installer/data/mysql/updatedatabase.pl line
12638.

Reproduce:
on an ubuntu 16.04 LTS machine with MySQL 5.7 install git koha
development environment.
...
git checkout -b my_3.18.x origin/3.18.x
drop database koha_library;
create database koha_library;
quit;
web install all sample data
(ignore some issues with sample data, and one with mandatory)

git checkout -b bug_17234 origin/master
git bz apply 17292
git bz apply 17320
git bz apply 17260
git bz apply 17234
web install
Two warning messages are expected output from upgrade process, but
the above message is not.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Did not follow the test plan, but the changes make sense

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 0599ab0076)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 3c2bd4ef3b)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
2016-10-24 11:37:40 +02:00
..
atomicupdate Bug 7045: Update DB rev (3.22.11.02) 2016-10-24 11:10:17 +02:00
de-DE Bug 16554: rewrite mandatory and sample data - de-DE 2016-09-16 11:53:32 +02:00
en Bug 16554: More i18n changes - en, es, nb and pl files 2016-09-16 11:53:32 +02:00
es-ES Bug 16554: More i18n changes - en, es, nb and pl files 2016-09-16 11:53:32 +02:00
fr-FR Bug 16554: Fix fr-FR sample files 2016-09-16 11:24:58 +02:00
it-IT Bug 16554: rewrite mandatory and sample data - it-IT 2016-09-16 11:53:32 +02:00
mandatory Bug 16311 - Advanced search language limit typo 2016-09-16 11:20:48 +02:00
nb-NO Bug 16554: More i18n changes - en, es, nb and pl files 2016-09-16 11:53:32 +02:00
pl-PL Bug 16554: More i18n changes - en, es, nb and pl files 2016-09-16 11:53:32 +02:00
ru-RU Bug 15086: Creators layout and template sql has warnings 2016-05-17 07:52:08 +02:00
uk-UA Bug 15086: Creators layout and template sql has warnings 2016-05-17 07:52:08 +02: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 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Bug 16573: fix structure and sample data for MySQL 5.7 2016-08-17 14:04:49 +02:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 14707 : Replace UsageStatsCountry syspref from free text to a dropdown list. 2016-10-14 14:26:40 +02:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 17324: Deal with branchcode NULL issue 2016-10-24 11:37:40 +02:00
userflags.sql Bug 13632: Populate user_flags and permissions tables in the web installer 2015-10-19 09:38:04 -03:00
userpermissions.sql Bug 11569: Correcting typos in userpermissions.sql 2016-02-01 17:52:26 +01:00