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 Bug 34204: Fix koha-shell under debian 12 2023-10-18 15:41:22 -03:00
koha-create-dirs
…
koha-disable Bug 22417: Add debian script koha-worker 2020-10-05 15:22:44 +02:00
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 Bug 33108: koha-es-indexer added 2023-03-20 09:39:45 -03:00
koha-foreach Bug 34653: Make koha-foreach return the correct status code 2023-09-25 10:56:40 -03:00
koha-functions.sh Bug 33108: koha-es-indexer added 2023-03-20 09:39:45 -03:00
koha-indexer Bug 32811: Remove useless lines for indexer.log 2023-03-06 09:51:49 -03:00
koha-list Bug 38249: Fix typo in koha-list --help 2024-10-24 13:38:11 +02:00
koha-mysql Bug 30468: Restore 'set -e' and remove echos 2022-08-01 09:18:50 -03:00
koha-mysqlcheck
…
koha-passwd Bug 28493: Make koha-passwd display the username 2023-07-19 13:00:41 -03:00
koha-plack Bug 36932: Add development parameter to koha-plack 2025-03-07 15:41:16 +01:00
koha-rebuild-zebra
…
koha-remove Bug 33108: Make init handle koha-es-indexer 2023-03-20 09:39:47 -03:00
koha-reset-passwd
…
koha-restore Bug 10517: (QA follow-up) No need to remove second true 2022-05-03 11:19:50 -10:00
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 Bug 28519: Add lib to koha-shell 2021-06-17 15:59:40 +02:00
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 Bug 25716: (QA follow-up) Move additional options to etc/z3950/config.xml 2022-10-24 13:11:27 -03:00
koha-zebra Bug 27291: Reformat Zebra output logs 2024-03-22 10:35:25 +01:00