Bug 37693 - Database version update is invalid for 22.11.20
Summary: Database version update is invalid for 22.11.20
Status: CLOSED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Installation and upgrade (command-line installer) (show other bugs)
Version: 22.11
Hardware: All All
: P5 - low critical
Assignee: Aleisha Amohia
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-20 21:59 UTC by Aleisha Amohia
Modified: 2025-06-02 20:46 UTC (History)
2 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: Sponsored
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 37693: Rename 22.11.20 db revision (1.10 KB, patch)
2024-08-20 22:02 UTC, Aleisha Amohia
Details | Diff | Splinter Review
Bug 37693: Rename 22.11.20 db revision (1.00 KB, patch)
2024-08-20 22:07 UTC, Aleisha Amohia
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Aleisha Amohia 2024-08-20 21:59:59 UTC
This error is being thrown upgrading from 22.11.19 to 22.11.10:

Invalid db_rev found: 22112000.pl at /usr/share/koha/lib/C4/Installer.pm line 716.
Comment 1 Aleisha Amohia 2024-08-20 22:02:58 UTC Comment hidden (obsolete)
Comment 2 Aleisha Amohia 2024-08-20 22:07:10 UTC
Created attachment 170509 [details] [review]
Bug 37693: Rename 22.11.20 db revision

To test:

1. Spin up ktd with v22.11.19 checked out
2. Check out v22.11.20
3. Upgrade the schema

sudo koha-upgrade-schema $(sudo koha-list --enabled)

4. Notice you get an invalid db_rev error
5. Apply Bug 37693
6. Repeat step 3
7. Confirm the db update is applied successfully
8. Restart services and confirm you can access the upgraded Koha

restart_all

Sponsored-by: Catalyst IT
Comment 3 Katrin Fischer 2024-08-21 07:17:25 UTC
Hi Aleisha, 

this is already fixed. You need to use the 22.11.20-2 tag if you build your own packages. Always look for the newest tags.

See: https://git.koha-community.org/Koha-community/Koha/commit/d0cefd8344345cc4499a16d5b2998463df0121dd

Packages and tarball should have been updated, I checked the tarballs myself.