Bug 34685: Make updatedatabase.pl propagate the error
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 1 Sep 2023 07:10:52 +0000 (09:10 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 8 Sep 2023 19:27:46 +0000 (09:27 -1000)
commit706e1ed0925acc1a50816065594104deaba37b44
tree74c3d8a3279013d19e1078be8ce64869a874d455
parentf73ed6655d41c9a518ead7a9c42b4e882d33b186
Bug 34685: Make updatedatabase.pl propagate the error

updatedatabase.pl already return 0 even if an error occurred during the upgrade.

Test plan:
Adjust a db rev to make it fail and modify the value of the syspref 'version' in DB to
make the db rev run.

Run updatedabase.pl and `echo $?`

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 531fb2c9fd2e8b38ac1c6ef21be047bbb0358d7a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
installer/data/mysql/updatedatabase.pl