]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 6 Sep 2023 18:05:21 +0000 (15:05 -0300)
commit531fb2c9fd2e8b38ac1c6ef21be047bbb0358d7a
treef49525c13f910e803de2d074fea8367d9c36aa5d
parent027e1e18620e3c790e85ea49b3870f9ee7785871
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>
installer/data/mysql/updatedatabase.pl