Koha-clms/installer/data/mysql/atomicupdate
Jonathan Druart 4ccdb714ec
Bug 38394: Remove existing try/catch and say_failure from DB revs
On bug 37895 we have failed to propose a solution to encapsulate exceptions and rethrow them.

Until this is ready we should not try/catch and so use say_failure from our DB revs.

We want to stop the DB update process when something is wrong. In those
try/catch we are actually continuing even if something bad happens.

As RaiseError is set on the dbh, say_failure statements will never be
reached.

Test plan:
checkout origin/24.05.0
reset_all
checkout main + this patch
updatedatabase

Everything should run fine.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-11-07 16:29:20 +01:00
..
README
…
skeleton.pl Bug 38394: Remove existing try/catch and say_failure from DB revs 2024-11-07 16:29:20 +01:00

README

Please put your database revision files in this folder.
The Release Manager will remove them here when pushing your patches.

To use the skeleton .perl for your update:

% cp installer/data/mysql/atomicupdate/skeleton.perl
installer/data/mysql/atomicupdate/bug_XXXXX.perl

and put your modifications in where noted.