Koha/installer/data/mysql
Jared Camins-Esakov 0554a472d8 Bug 9135: updatedatabase.pl fails when DEBUG is set
When the DEBUG environment variable is set to a true value, all DBI
errors are treated as fatal. Unfortunately, duplicate keys are
incredibly common in updatedatabase.pl, since sysprefs are often added
in testing, then re-added once the patches have been pushed to master
(or added when on a maintenance branch, and then re-added when the
system is upgraded to either a newer maintenance branch or master).
This patch disables fatal errors for the updatedatabase.pl script.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests and perlcritic pass.
To test, run from command line:
export DEBUG=1
installer/data/mysql/updatedatabase.pl

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
If a query causes an error, the script continues as expected.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2012-12-03 06:25:15 -05:00
..
atomicupdate Bug 7475: Update configuration 2012-09-19 17:15:25 +02:00
de-DE Bug 9024: Fix typo 2012-11-20 14:14:09 -05:00
en Bug 9023: Update installer text files 2012-11-20 08:05:04 -05:00
es-ES Bug 9023: Remove NY Z39.50 servers from installer txt files 2012-11-20 08:04:06 -05:00
fr-FR Bug 9020: follow-up fixes french translation for permissions 2012-11-25 18:35:40 -05:00
it-IT bug_8083: parameters subpermissions: manage_circ_rules and parameters_remaining_permissions 2012-07-23 10:43:59 +02:00
nb-NO Merge branch 'bug_2832' into 3.12-master 2012-11-23 11:41:48 -05:00
pl-PL Bug 9023: Remove NY Z39.50 servers from installer txt files 2012-11-20 08:04:06 -05:00
ru-RU bug_8083: parameters subpermissions: manage_circ_rules and parameters_remaining_permissions 2012-07-23 10:43:59 +02:00
uk-UA bug_8083: parameters subpermissions: manage_circ_rules and parameters_remaining_permissions 2012-07-23 10:43:59 +02:00
backfill_statistics.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Bug 8782: Close a subscription 2012-11-30 08:14:24 -05:00
labels_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
patroncards_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
sample_only_param_tables.sql Moved location of updater scripts to dbms specific dir. 2007-11-13 11:22:47 -06:00
sysprefs.sql Bug 7189 - preference to control if returning lost items gives refund 2012-11-30 08:01:41 -05:00
update22to30.pl Bug 8289 Upgrading from 2.2 does not work anymore 2012-06-25 16:15:42 +02:00
updatedatabase.pl Bug 9135: updatedatabase.pl fails when DEBUG is set 2012-12-03 06:25:15 -05:00