Koha-clms/installer/data/mysql
Jared Camins-Esakov 9ff562ab8f 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>

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2012-12-05 15:52:14 +13: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-26 20:17:36 +13:00
it-IT bug_8083: parameters subpermissions: manage_circ_rules and parameters_remaining_permissions 2012-07-23 10:43:59 +02:00
nb-NO Bug 9020 - Translate new permissions for 3.10 nb-NO 2012-11-20 07:59:16 -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 9064: fix statistics.ccode column 2012-11-22 09:01:30 -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 8724 - Upgrade from NoZebra installs is broken 2012-10-22 14:55:17 +02: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-05 15:52:14 +13:00