Bugzilla – Attachment 13420 Details for
Bug 6428
refered column 'items.coded_location_qualifier' does not exist
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6428 [Follow-up] refered column 'items.coded_location_qualifier' does not exist
Bug-6428-Follow-up-refered-column-itemscodedlocati.patch (text/plain), 2.54 KB, created by
Jonathan Druart
on 2012-11-13 10:37:31 UTC
(
hide
)
Description:
Bug 6428 [Follow-up] refered column 'items.coded_location_qualifier' does not exist
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-11-13 10:37:31 UTC
Size:
2.54 KB
patch
obsolete
>From b1f2305147e1116556efba6739e8fc2d47a9a022 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Nu=C3=B1o=20L=C3=B3pez=20Ans=C3=B3tegui?= > <nunyo@masmedios.com> >Date: Mon, 12 Nov 2012 09:36:35 +0100 >Subject: [PATCH] Bug 6428 [Follow-up] refered column > 'items.coded_location_qualifier' does not exist > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > installer/data/mysql/kohastructure.sql | 1 + > installer/data/mysql/updatedatabase.pl | 8 +++++++- > 2 files changed, 8 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index ff66b6a..c0d9936 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -762,6 +762,7 @@ CREATE TABLE `deleteditems` ( > `itemlost` tinyint(1) NOT NULL default 0, -- authorized value defining this item as lost (MARC21 952$1) > `wthdrawn` tinyint(1) NOT NULL default 0, -- authorized value defining this item as withdrawn (MARC21 952$0) > `itemcallnumber` varchar(255) default NULL, -- call number for this item (MARC21 952$o) >+ `coded_location_qualifier` varchar(10) default NULL, -- coded location qualifier(MARC21 952$f) > `issues` smallint(6) default NULL, -- number of times this item has been checked out > `renewals` smallint(6) default NULL, -- number of times this item has been renewed > `reserves` smallint(6) default NULL, -- number of times this item has been placed on hold/reserved >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index f7e34eb..fab0e3c 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6043,11 +6043,17 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > > $DBversion = "3.09.00.064"; > if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >- $dbh->do('ALTER TABLE items ADD coded_location_qualifier varchar(10) default NULL'); >+ $dbh->do('ALTER TABLE items ADD coded_location_qualifier varchar(10) default NULL AFTER itemcallnumber'); > print "Upgrade to $DBversion done (Bug 6428: Added coded_location_qualifier to the items table)\n"; > SetVersion ($DBversion); > } > >+$DBversion = "3.09.00.XXX"; >+if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >+ $dbh->do('ALTER TABLE deleteditems ADD coded_location_qualifier varchar(10) default NULL AFTER itemcallnumber'); >+ print "Upgrade to $DBversion done (Bug 6428: Added coded_location_qualifier to the deleteditems table)\n"; >+ SetVersion ($DBversion); >+} > > =head1 FUNCTIONS > >-- >1.7.10.4
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 6428
:
4310
|
4474
|
4678
|
4835
|
5793
|
5795
|
13005
|
13008
|
13222
|
13387
|
13388
|
13391
|
13401
|
13419
| 13420