Koha-clms/debian/scripts
David Cook ef4d0aa5c5
Bug 39460: Fix koha-upgrade-schema when no DB change needed
This patch fixes koha-upgrade-schema so that it returns an exit
code of 0 whether or not a DB change is needed. This is important
so that koha-common.postinst proceeds correctly even when there
is no DB change needed (e.g. for 24.11.03-2)

Test plan:
0. Apply the patch
1. cp debian/scripts/koha-upgrade-schema /usr/sbin/koha-upgrade-schema
2. dpkg-reconfigure koha-common
3. Note the process completes correctly
4. koha-upgrade-schema kohadev
5. Note following text appears very quickly:
Upgrading database schema for kohadev
No database change required
6. koha-mysql kohadev
update systempreferences set value = '24.1102000' where variable = 'Version';
7. Clear memcached
8. koha-upgrade-schema kohadev
9. Note that it applies the 24.11.03 database upgrade

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2025-04-04 09:21:58 +02:00
..
koha-create
…
koha-create-dirs
…
koha-disable
…
koha-dump Bug 38173: Fix description of koha-dump --exclude-indexes 2024-10-23 19:14:57 +02:00
koha-dump-defaults
…
koha-elasticsearch Bug 37038: (QA follow-up) Replace \> by -gt 2024-06-28 13:49:23 +02:00
koha-email-disable
…
koha-email-enable
…
koha-enable
…
koha-es-indexer
…
koha-foreach
…
koha-functions.sh
…
koha-indexer
…
koha-list Bug 38249: Fix typo in koha-list --help 2024-10-24 13:38:11 +02:00
koha-mysql
…
koha-mysqlcheck
…
koha-passwd
…
koha-plack Bug 36932: Add development parameter to koha-plack 2025-03-07 15:41:16 +01:00
koha-rebuild-zebra
…
koha-remove
…
koha-reset-passwd
…
koha-restore
…
koha-run-backups Bug 14565: Allow koha-run-backups to backup an instance called `demo` 2024-06-28 13:49:22 +02:00
koha-shell
…
koha-sip Bug 36954: (follow-up) Return to the two logfiles pattern 2025-02-18 10:55:27 +01:00
koha-sitemap
…
koha-translate Bug 38035: Exclude "sound" from the list of installed languages 2024-10-02 10:15:53 +01:00
koha-upgrade-schema Bug 39460: Fix koha-upgrade-schema when no DB change needed 2025-04-04 09:21:58 +02:00
koha-upgrade-to-3.4
…
koha-worker Bug 37787: Undocument koha-worker --queue elastic_index 2024-10-23 19:14:55 +02:00
koha-z3950-responder
…
koha-zebra
…