Bug 38522 - Increase length of erm_argreements.license_info
Summary: Increase length of erm_argreements.license_info
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: Database (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Andrew Fuerste-Henry
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-22 19:22 UTC by Andrew Fuerste-Henry
Modified: 2024-12-03 16:36 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
25.05.00
Circulation function:


Attachments
Bug 38522: Increase erm_agreements.license_info length (1.43 KB, patch)
2024-11-22 20:11 UTC, Andrew Fuerste-Henry
Details | Diff | Splinter Review
Bug 38522: update kohastructure.sql (1.19 KB, patch)
2024-11-22 20:11 UTC, Andrew Fuerste-Henry
Details | Diff | Splinter Review
Bug 38522: update kohastructure.sql (1.24 KB, patch)
2024-11-22 20:19 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 38522: Increase erm_agreements.license_info length (1.48 KB, patch)
2024-11-22 20:20 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 38522: update kohastructure.sql (1.24 KB, patch)
2024-11-22 20:20 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2024-11-22 19:22:08 UTC
https://schema.koha-community.org/24_05/tables/erm_agreements.html

erm_agreements.license_info is limited to 80 characters. Users would like to be able to store more information here.

erm_agreement_licenses.notes and erm_agreement_periods.notes are both MEDIUMTEXT fields allowing up to 16777215 characters.
Comment 1 Andrew Fuerste-Henry 2024-11-22 20:11:24 UTC
Created attachment 174946 [details] [review]
Bug 38522: Increase erm_agreements.license_info length

to test:
1- try to save an agreement with 81+ characters in License Info
2- it does not save
3- apply patch, updatedatabase
4- repeat 1, it works!
Comment 2 Andrew Fuerste-Henry 2024-11-22 20:11:26 UTC
Created attachment 174947 [details] [review]
Bug 38522: update kohastructure.sql
Comment 3 Lucas Gass (lukeg) 2024-11-22 20:19:32 UTC
Created attachment 174948 [details] [review]
Bug 38522: update kohastructure.sql

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 4 Lucas Gass (lukeg) 2024-11-22 20:20:30 UTC
Created attachment 174949 [details] [review]
Bug 38522: Increase erm_agreements.license_info length

to test:
1- try to save an agreement with 81+ characters in License Info
2- it does not save
3- apply patch, updatedatabase
4- repeat 1, it works!

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 5 Lucas Gass (lukeg) 2024-11-22 20:20:33 UTC
Created attachment 174950 [details] [review]
Bug 38522: update kohastructure.sql

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 6 Lucas Gass (lukeg) 2024-11-22 20:24:49 UTC
Database update fails:

	ERROR: {UNKNOWN}: Undefined subroutine &C4::Installer::say_success called at /kohadevbox/koha/installer/data/mysql/atomicupdate/bug_35145_order_patron_attributes.pl line 21. at /kohadevbox/koha/C4/Installer.pm line 743
Comment 7 Lucas Gass (lukeg) 2024-11-22 20:25:35 UTC
(In reply to Lucas Gass (lukeg) from comment #6)
> Database update fails:
> 
> 	ERROR: {UNKNOWN}: Undefined subroutine &C4::Installer::say_success called
> at
> /kohadevbox/koha/installer/data/mysql/atomicupdate/
> bug_35145_order_patron_attributes.pl line 21. at
> /kohadevbox/koha/C4/Installer.pm line 743

Sorry, commented on the wrong bug. This database update is great.
Comment 8 Katrin Fischer 2024-12-03 16:14:10 UTC
Hi Andrew, please make sure to use the new skeleton.pl as a base for your atomic update files. You should use "say_success" for example.
Comment 9 Katrin Fischer 2024-12-03 16:16:16 UTC
(In reply to Katrin Fischer from comment #8)
> Hi Andrew, please make sure to use the new skeleton.pl as a base for your
> atomic update files. You should use "say_success" for example.

Hm, I just realized the file needs some more updating for the examples :)
Comment 10 Katrin Fischer 2024-12-03 16:36:27 UTC
Pushed for 25.05!

Well done everyone, thank you!