0554a472d8
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> |
||
---|---|---|
.. | ||
atomicupdate | ||
de-DE | ||
en | ||
es-ES | ||
fr-FR | ||
it-IT | ||
nb-NO | ||
pl-PL | ||
ru-RU | ||
uk-UA | ||
backfill_statistics.pl | ||
kohastructure.sql | ||
labels_upgrade.pl | ||
patroncards_upgrade.pl | ||
sample_only_param_tables.sql | ||
sysprefs.sql | ||
update22to30.pl | ||
updatedatabase.pl |