]> git.koha-community.org Git - koha.git/commit
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)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Fri, 15 Sep 2023 09:50:34 +0000 (09:50 +0000)
commit4fe259f19d32411f99fd124dfe8a4ee3a4676194
treeb815f87554365c51839e46d921b9840daef1e31e
parent378af20dd19d6274799ca73af60349c90b116baa
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>
(cherry picked from commit 706e1ed0925acc1a50816065594104deaba37b44)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
installer/data/mysql/updatedatabase.pl