Bugzilla – Attachment 180760 Details for
Bug 39600
Use the API to render the OPAC ILL requests table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39460: Fix koha-upgrade-schema when no DB change needed
Bug-39460-Fix-koha-upgrade-schema-when-no-DB-chang.patch (text/plain), 2.31 KB, created by
HKS3 Tadeusz Sośnierz
on 2025-04-10 11:14:05 UTC
(
hide
)
Description:
Bug 39460: Fix koha-upgrade-schema when no DB change needed
Filename:
MIME Type:
Creator:
HKS3 Tadeusz Sośnierz
Created:
2025-04-10 11:14:05 UTC
Size:
2.31 KB
patch
obsolete
>From ef4d0aa5c58966005b25e9895cfd55d92f250cce Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Tue, 1 Apr 2025 01:52:27 +0000 >Subject: [PATCH] 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> >--- > debian/scripts/koha-upgrade-schema | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > >diff --git a/debian/scripts/koha-upgrade-schema b/debian/scripts/koha-upgrade-schema >index 66a52b0f66..01d9b69662 100755 >--- a/debian/scripts/koha-upgrade-schema >+++ b/debian/scripts/koha-upgrade-schema >@@ -41,12 +41,15 @@ for name in "$@" > do > if is_instance $name; then > echo "Upgrading database schema for $name" >- KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \ >+ if KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \ > PERL5LIB=$PERL5LIB \ >- "$CGI_PATH/installer/data/mysql/needs_update.pl" && \ >- KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \ >- PERL5LIB=$PERL5LIB \ >- "$CGI_PATH/installer/data/mysql/updatedatabase.pl" >+ "$CGI_PATH/installer/data/mysql/needs_update.pl"; then >+ KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \ >+ PERL5LIB=$PERL5LIB \ >+ "$CGI_PATH/installer/data/mysql/updatedatabase.pl" >+ else >+ echo "No database change required" >+ fi > else > die "Error: Invalid instance name $name" > fi >-- >2.47.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39600
:
180758
|
180759
|
180760
|
180761
|
180762
|
180763
|
180764
|
180778
|
180781
|
180785
|
180786
|
180787
|
180821
|
181132
|
181133
|
181134
|
181135
|
181437
|
181438
|
181439
|
181440
|
181441
|
181442
|
181443
|
181524
|
181525
|
181526
|
181532
|
181533
|
181534
|
181535
|
181536
|
181537
|
181538
|
181608
|
181652