Bugzilla – Attachment 13008 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]
fixed patch
0001-Bug-6428-refered-column-items.coded_location_qual.patch (text/plain), 3.15 KB, created by
Nuño López Ansótegui
on 2012-10-23 12:13:35 UTC
(
hide
)
Description:
fixed patch
Filename:
MIME Type:
Creator:
Nuño López Ansótegui
Created:
2012-10-23 12:13:35 UTC
Size:
3.15 KB
patch
obsolete
>From 6765cee611af0518fa40e55721a330cf04045140 Mon Sep 17 00:00:00 2001 >From: Nuño López Ansótegui <nunyo@masmedios.com> >Date: Tue, 23 Oct 2012 13:32:43 +0200 >Subject: [PATCH] Bug 6428 - refered column 'items.coded_location_qualifier' does not exist > >--- > C4/Items.pm | 3 +++ > installer/data/mysql/kohastructure.sql | 1 + > installer/data/mysql/updatedatabase.pl | 8 ++++++++ > 3 files changed, 12 insertions(+), 0 deletions(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index c114e63..b8509b0 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -440,6 +440,7 @@ my %default_values_for_mod_from_marc = ( > booksellerid => undef, > ccode => undef, > 'items.cn_source' => undef, >+ coded_location_qualifier => undef, > copynumber => undef, > damaged => 0, > # dateaccessioned => undef, >@@ -2076,6 +2077,7 @@ sub _koha_new_item { > itemlost = ?, > wthdrawn = ?, > itemcallnumber = ?, >+ coded_location_qualifier = ?, > restricted = ?, > itemnotes = ?, > holdingbranch = ?, >@@ -2117,6 +2119,7 @@ sub _koha_new_item { > $item->{'itemlost'}, > $item->{'wthdrawn'}, > $item->{'itemcallnumber'}, >+ $item->{'coded_location_qualifier'}, > $item->{'restricted'}, > $item->{'itemnotes'}, > $item->{'holdingbranch'}, >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 29ee782..ff66b6a 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1047,6 +1047,7 @@ CREATE TABLE `items` ( -- holdings/item information > `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/issued > `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 4759034..865d336 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6019,6 +6019,14 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > SetVersion ($DBversion); > } > >+$DBversion = "3.09.00.XXX"; >+if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >+ $dbh->do('ALTER TABLE items ADD coded_location_qualifier varchar(10) default NULL'); >+ print "Upgrade to $DBversion done (Bug 6428: Added coded_location_qualifier to the items table)\n"; >+ SetVersion ($DBversion); >+} >+ >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >-- >1.5.6.5 >
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