Bugzilla – Attachment 174949 Details for
Bug 38522
Increase length of erm_argreements.license_info
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38522: Increase erm_agreements.license_info length
Bug-38522-Increase-ermagreementslicenseinfo-length.patch (text/plain), 1.48 KB, created by
Lucas Gass (lukeg)
on 2024-11-22 20:20:30 UTC
(
hide
)
Description:
Bug 38522: Increase erm_agreements.license_info length
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-11-22 20:20:30 UTC
Size:
1.48 KB
patch
obsolete
>From 9d850d214256cd28d4a2d6e4912ca7bd263e5139 Mon Sep 17 00:00:00 2001 >From: Andrew Fuerste Henry <andrew@bywatersolutions.com> >Date: Fri, 22 Nov 2024 20:08:36 +0000 >Subject: [PATCH] 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> >--- > .../bug_38522_increase_field_length.pl | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_38522_increase_field_length.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_38522_increase_field_length.pl b/installer/data/mysql/atomicupdate/bug_38522_increase_field_length.pl >new file mode 100755 >index 0000000000..28a0b6a201 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_38522_increase_field_length.pl >@@ -0,0 +1,18 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "38522", >+ description => "increase erm_agreements.license_info length", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Do you stuffs here >+ $dbh->do(q{ALTER TABLE erm_agreements MODIFY COLUMN license_info mediumtext}); >+ >+ # Print useful stuff here >+ # tables >+ say $out "Set erm_agreements.license_info to type mediumtext."; >+ }, >+}; >-- >2.39.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 38522
:
174946
|
174947
|
174948
| 174949 |
174950
|
175327
|
175332