Koha-clms/installer/data/mysql
Jared Camins-Esakov 0013f6fa45 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>
Signed-off-by: Liz Rea <liz@catalyst.net.nz>
2012-12-24 14:26:38 +13:00
..
atomicupdate Bug 7284: Authority matching improvements 2012-05-08 17:48:47 -04:00
de-DE Revert "Bug 9024: Add missing sample data to existing files" 2012-12-04 09:24:37 +13:00
en Bug 3782: Remove broken z39.50 targets from sample files 2012-10-12 22:00:40 -04:00
es-ES Bug 3782: Remove broken z39.50 targets from sample files 2012-10-12 22:00:40 -04:00
fr-FR Revert "Bug 6299 Add relator codes for fr-FR" 2012-02-21 09:18:48 -05:00
it-IT Bug 7289: Add biblioitems.editionstatement to missing sql files 2012-02-19 21:00:36 -05:00
nb-NO Bug 2399: All status fields in the item edit interface offer two blank/null entries per dropdown instead of one 2012-06-14 07:44:17 -04:00
pl-PL Bug 3782: Remove broken z39.50 targets from sample files 2012-10-12 22:00:40 -04:00
ru-RU Bug 2399: Follow up removing MySQLisms from ru-RU and uk-UA sample files 2012-06-14 07:44:18 -04:00
uk-UA Bug 2399: Follow up removing MySQLisms from ru-RU and uk-UA sample files 2012-06-14 07:44:18 -04:00
backfill_statistics.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Bug 7886 - C4/ShelfBrowser slow SQL performance 2012-05-23 20:55:50 -04: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
…
sysprefs.sql Bug 8012: default values for defaultSortField/defaultSortOrder NULL on install 2012-10-12 21:22:10 -04:00
update22to30.pl Bug 8289 Upgrading from 2.2 does not work anymore 2012-08-11 07:29:35 -04:00
updatedatabase.pl Bug 9135: updatedatabase.pl fails when DEBUG is set 2012-12-24 14:26:38 +13:00