Bugzilla – Attachment 90323 Details for
Bug 10215
Increase the size of opacnote and librariannote for table subscriptionhistory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10215: Increase the size of opacnote and librariannote for table subscriptionhistory
Bug-10215-Increase-the-size-of-opacnote-and-librar.patch (text/plain), 2.90 KB, created by
Martin Renvoize (ashimema)
on 2019-06-05 11:55:43 UTC
(
hide
)
Description:
Bug 10215: Increase the size of opacnote and librariannote for table subscriptionhistory
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-06-05 11:55:43 UTC
Size:
2.90 KB
patch
obsolete
>From 1eca6d896b0e91367c3c4cbf8254b3b4e3fc8d6e Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 7 May 2013 12:49:03 -0400 >Subject: [PATCH] Bug 10215: Increase the size of opacnote and librariannote > for table subscriptionhistory > >We have librarians that are regularly hitting the maximum number of >characters for the note fields in subscription history. They would like >to be able to store at least 1000 characters here. Converting the >varchar(150) to text should do it. > >Test Plan: >1) Apply this patch >2) Run updatedatabase.pl >3) Add public and private notes to a subscription history entry > where each note is greater than 150 characters. >4) Save and view the notes, the notes should not be truncated. > >Rescued-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > C4/Serials.pm | 1 + > installer/data/mysql/atomicupdate/bug_10215.perl | 9 +++++++++ > installer/data/mysql/kohastructure.sql | 4 ++-- > 3 files changed, 12 insertions(+), 2 deletions(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_10215.perl > >diff --git a/C4/Serials.pm b/C4/Serials.pm >index e6eae860ff..44c3cb958e 100644 >--- a/C4/Serials.pm >+++ b/C4/Serials.pm >@@ -428,6 +428,7 @@ sub GetSubscriptionsFromBiblionumber { > } else { > $subs->{histenddate} = ""; > } >+ $subs->{opacnote} //= ""; > $subs->{opacnote} =~ s/\n/\<br\/\>/g; > $subs->{missinglist} =~ s/\n/\<br\/\>/g; > $subs->{recievedlist} =~ s/\n/\<br\/\>/g; >diff --git a/installer/data/mysql/atomicupdate/bug_10215.perl b/installer/data/mysql/atomicupdate/bug_10215.perl >new file mode 100644 >index 0000000000..a960435a24 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_10215.perl >@@ -0,0 +1,9 @@ >+$DBversion = 'XXX'; >+if ( CheckVersion($DBversion) ) { >+ >+ $dbh->do(q{ALTER TABLE subscriptionhistory CHANGE opacnote opacnote LONGTEXT NULL}); >+ $dbh->do(q{ALTER TABLE subscriptionhistory CHANGE librariannote librariannote LONGTEXT NULL}); >+ >+ SetVersion ($DBversion); >+ print "Upgrade to $DBversion done (Bug 10215 - Increase the size of opacnote and librariannote for table subscriptionhistory)\n"; >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index da3ff83f37..e171b32e19 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -2110,8 +2110,8 @@ CREATE TABLE `subscriptionhistory` ( > `histenddate` date default NULL, > `missinglist` LONGTEXT NOT NULL, > `recievedlist` LONGTEXT NOT NULL, >- `opacnote` varchar(150) NOT NULL default '', >- `librariannote` varchar(150) NOT NULL default '', >+ `opacnote` LONGTEXT NULL, >+ `librariannote` LONGTEXT NULL, > PRIMARY KEY (`subscriptionid`), > KEY `biblionumber` (`biblionumber`) > ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; >-- >2.20.1
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 10215
:
17998
|
17999
|
19247
|
19335
|
85395
|
85400
|
87705
|
90323
|
90324
|
90325
|
90355
|
90356
|
90357