Bugzilla – Attachment 5665 Details for
Bug 6716
Database Documentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug 6717 - document the items table
bug-6717---document-the-items-table.patch (text/plain), 5.94 KB, created by
Nicole C. Engard
on 2011-09-30 17:25:00 UTC
(
hide
)
Description:
bug 6717 - document the items table
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2011-09-30 17:25:00 UTC
Size:
5.94 KB
patch
obsolete
>From bff69ca3f645cc5b6c60a31f03e765402bb55518 Mon Sep 17 00:00:00 2001 >From: Nicole C. Engard <nengard@bywatersolutions.com> >Date: Wed, 28 Sep 2011 08:35:47 -0400 >Subject: [PATCH] bug 6717 - document the items table > >This patch documents the items table. Some fields were left >undocumented because I was unsure of what data was stored there: > >stack >paidfor >cn_sort >permanent_location >stocknumber > >http://bugs.koha-community.org/show_bug.cgi?id=6716 >--- > installer/data/mysql/kohastructure.sql | 70 ++++++++++++++++---------------- > 1 files changed, 35 insertions(+), 35 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 3a51df5..337d555 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -996,45 +996,45 @@ CREATE TABLE `issuingrules` ( > -- > > DROP TABLE IF EXISTS `items`; >-CREATE TABLE `items` ( >- `itemnumber` int(11) NOT NULL auto_increment, >- `biblionumber` int(11) NOT NULL default 0, >- `biblioitemnumber` int(11) NOT NULL default 0, >- `barcode` varchar(20) default NULL, >- `dateaccessioned` date default NULL, >- `booksellerid` mediumtext default NULL, >- `homebranch` varchar(10) default NULL, >- `price` decimal(8,2) default NULL, >- `replacementprice` decimal(8,2) default NULL, >- `replacementpricedate` date default NULL, >- `datelastborrowed` date default NULL, >- `datelastseen` date default NULL, >+CREATE TABLE `items` ( -- holdings/item information >+ `itemnumber` int(11) NOT NULL auto_increment, -- primary key and unique identifier added by Koha >+ `biblionumber` int(11) NOT NULL default 0, -- foreign key from biblio table used to link this item to the right bib record >+ `biblioitemnumber` int(11) NOT NULL default 0, -- foreign key from the biblioitems table to link to item to additional information >+ `barcode` varchar(20) default NULL, -- item barcode (952$p) >+ `dateaccessioned` date default NULL, -- date the item was acquired or added to Koha (952$d) >+ `booksellerid` mediumtext default NULL, -- where the item was purchased (952$e) >+ `homebranch` varchar(10) default NULL, -- foreign key from the branches table for the library that owns this item (952$a) >+ `price` decimal(8,2) default NULL, -- purchase price (952$g) >+ `replacementprice` decimal(8,2) default NULL, -- cost the library charges to replace the item if it has been marked lost (952$v) >+ `replacementpricedate` date default NULL, -- the date the price is effective from (952$w) >+ `datelastborrowed` date default NULL, -- the date the item was last checked out >+ `datelastseen` date default NULL, -- the date the item was last see (usually the last time the barcode was scanned or inventory was done) > `stack` tinyint(1) default NULL, >- `notforloan` tinyint(1) NOT NULL default 0, >- `damaged` tinyint(1) NOT NULL default 0, >- `itemlost` tinyint(1) NOT NULL default 0, >- `wthdrawn` tinyint(1) NOT NULL default 0, >- `itemcallnumber` varchar(255) default NULL, >- `issues` smallint(6) default NULL, >- `renewals` smallint(6) default NULL, >- `reserves` smallint(6) default NULL, >- `restricted` tinyint(1) default NULL, >- `itemnotes` mediumtext, >- `holdingbranch` varchar(10) default NULL, >+ `notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (952$7) >+ `damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (952$4) >+ `itemlost` tinyint(1) NOT NULL default 0, -- authorized value defining this item as lost (952$1) >+ `wthdrawn` tinyint(1) NOT NULL default 0, -- authorized value defining this item as withdrawn (952$0) >+ `itemcallnumber` varchar(255) default NULL, -- call number for this item (952$o) >+ `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 >+ `restricted` tinyint(1) default NULL, -- authorized value defining use restrictions for this item (952$5) >+ `itemnotes` mediumtext, -- public notes on this item (952$x) >+ `holdingbranch` varchar(10) default NULL, -- foreign key from the branches table for the library that is currently in possession item (952$b) > `paidfor` mediumtext, >- `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, >- `location` varchar(80) default NULL, >+ `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- date and time this item was last altered >+ `location` varchar(80) default NULL, -- authorized value for the shelving location for this item (952$c) > `permanent_location` varchar(80) default NULL, >- `onloan` date default NULL, >- `cn_source` varchar(10) default NULL, >+ `onloan` date default NULL, -- defines if this item is currently checked out (1 for yes, 0 for no) >+ `cn_source` varchar(10) default NULL, -- classification source used on this item (952$2) > `cn_sort` varchar(30) default NULL, >- `ccode` varchar(10) default NULL, >- `materials` varchar(10) default NULL, >- `uri` varchar(255) default NULL, >- `itype` varchar(10) default NULL, >- `more_subfields_xml` longtext default NULL, >- `enumchron` text default NULL, >- `copynumber` varchar(32) default NULL, >+ `ccode` varchar(10) default NULL, -- authorized value for the collection code associated with this item (952$8) >+ `materials` varchar(10) default NULL, -- materials specified (952$3) >+ `uri` varchar(255) default NULL, -- URL for the item (952$u) >+ `itype` varchar(10) default NULL, -- foreign key from the itemtypes table defining the type for this item (952$y) >+ `more_subfields_xml` longtext default NULL, -- additional 952 subfields in XML format >+ `enumchron` text default NULL, -- serial enumeration/chronology for the item (952$h) >+ `copynumber` varchar(32) default NULL, -- copy number (952$t) > `stocknumber` varchar(32) default NULL, > PRIMARY KEY (`itemnumber`), > UNIQUE KEY `itembarcodeidx` (`barcode`), >-- >1.7.2.3
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 6716
:
4987
|
4988
|
4989
|
4992
|
5003
|
5004
|
5005
|
5006
|
5007
|
5008
|
5009
|
5011
|
5012
|
5013
|
5014
|
5139
|
5140
|
5141
|
5142
|
5174
|
5175
|
5176
|
5177
|
5178
|
5179
|
5186
|
5187
|
5188
|
5190
|
5192
|
5193
|
5355
|
5356
|
5663
|
5664
|
5665
|
5666
|
5668
|
5669
|
5686
|
5687
|
5706
|
5829
|
6004
|
6015
|
6591
|
6592
|
6593
|
6594
|
6595
|
6596
|
6597
|
6598
|
6599
|
10788
|
10789
|
10790
|
10791
|
10792
|
10793
|
10794
|
10795
|
10822
|
10823
|
10824
|
10832
|
10833
|
10942
|
10970
|
10975
|
11011
|
11013
|
11014
|
11016
|
11018
|
11019
|
11020
|
11021
|
11022
|
11023
|
11084
|
11729
|
11823
|
11987
|
12024
|
12561
|
26777