Bugzilla – Attachment 23124 Details for
Bug 11275
make deleteditems.materials of type text
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED OFF] Bug 11275 - make deleteditems.materials of type text
SIGNED-OFF-Bug-11275---make-deleteditemsmaterials-.patch (text/plain), 2.74 KB, created by
Katrin Fischer
on 2013-11-24 22:37:38 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 11275 - make deleteditems.materials of type text
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2013-11-24 22:37:38 UTC
Size:
2.74 KB
patch
obsolete
>From 199c3af478b0702a948c639487b7170b65582de4 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Wed, 20 Nov 2013 14:34:36 +0100 >Subject: [PATCH] [SIGNED OFF] Bug 11275 - make deleteditems.materials of type > text > >Bug 7278 has made items.materials of type text. >It must be the same in deleteditems column. > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Passes all tests and QA script. >Tested: >- definition of materials now matches between items and deleteditems >- database update works correctly >--- > installer/data/mysql/kohastructure.sql | 2 +- > installer/data/mysql/updatedatabase.pl | 7 +++++++ > 2 files changed, 8 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index fefc985..07160c8 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -905,7 +905,7 @@ CREATE TABLE `deleteditems` ( > `cn_source` varchar(10) default NULL, -- classification source used on this item (MARC21 952$2) > `cn_sort` varchar(30) default NULL, -- normalized form of the call number (MARC21 952$o) used for sorting > `ccode` varchar(10) default NULL, -- authorized value for the collection code associated with this item (MARC21 952$8) >- `materials` varchar(10) default NULL, -- materials specified (MARC21 952$3) >+ `materials` text default NULL, -- materials specified (MARC21 952$3) > `uri` varchar(255) default NULL, -- URL for the item (MARC21 952$u) > `itype` varchar(10) default NULL, -- foreign key from the itemtypes table defining the type for this item (MARC21 952$y) > `more_subfields_xml` longtext default NULL, -- additional 952 subfields in XML format >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index a9e08e3..15bf225 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -7768,6 +7768,13 @@ if ( CheckVersion($DBversion) ) { > $dbh->do("UPDATE systempreferences SET value='qslip' where variable = 'CircAutoPrintQuickSlip' and value = '1'"); > $dbh->do("UPDATE systempreferences SET explanation = 'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.', type = 'Choice' where variable = 'CircAutoPrintQuickSlip'"); > print "Upgrade to $DBversion done (Bug 11040: Add option to print full slip when checking out a null barcode)\n"; >+} >+ >+ >+$DBversion = "3.15.00.XXX"; >+if(CheckVersion($DBversion)) { >+ $dbh->do("ALTER TABLE deleteditems MODIFY materials text;"); >+ print "Upgrade to $DBversion done (Bug 11275: alter deleteditems.materials from varchar(10) to text)\n"; > SetVersion($DBversion); > } > >-- >1.8.3.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 11275
:
23054
|
23124
|
23194
|
23195