Bugzilla – Attachment 5355 Details for
Bug 6716
Database Documentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6716: Document suggestions table
Bug-6716-Document-suggestions-table.patch (text/plain), 4.74 KB, created by
Nicole C. Engard
on 2011-09-08 12:16:15 UTC
(
hide
)
Description:
Bug 6716: Document suggestions table
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2011-09-08 12:16:15 UTC
Size:
4.74 KB
patch
obsolete
>From a46b7cb11ee806b9103c061d934307c4630d63a4 Mon Sep 17 00:00:00 2001 >From: Nicole C. Engard <nengard@bywatersolutions.com> >Date: Wed, 7 Sep 2011 21:17:20 -0400 >Subject: [PATCH] Bug 6716: Document suggestions table > >This patch documents the suggestions database table. Several fields >appear to be unused: > >* volumedesc >* publicationyear >* mailoverseeing > >They are left undocumented by this patch. >--- > installer/data/mysql/kohastructure.sql | 58 ++++++++++++++++---------------- > 1 files changed, 29 insertions(+), 29 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 13fa53d..6d46afe 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1821,38 +1821,38 @@ CREATE TABLE `subscriptionroutinglist` ( > -- > > DROP TABLE IF EXISTS `suggestions`; >-CREATE TABLE `suggestions` ( >- `suggestionid` int(8) NOT NULL auto_increment, >- `suggestedby` int(11) NOT NULL default 0, >- `suggesteddate` date NOT NULL default 0, >- `managedby` int(11) default NULL, >- `manageddate` date default NULL, >- acceptedby INT(11) default NULL, >- accepteddate date default NULL, >- rejectedby INT(11) default NULL, >- rejecteddate date default NULL, >- `STATUS` varchar(10) NOT NULL default '', >- `note` mediumtext, >- `author` varchar(80) default NULL, >- `title` varchar(80) default NULL, >- `copyrightdate` smallint(6) default NULL, >- `publishercode` varchar(255) default NULL, >- `date` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, >+CREATE TABLE `suggestions` ( -- purchase suggestions >+ `suggestionid` int(8) NOT NULL auto_increment, -- unique identifier assigned automatically by Koha >+ `suggestedby` int(11) NOT NULL default 0, -- borrowernumber for the person making the suggestion, foreign key linking to the borrowers table >+ `suggesteddate` date NOT NULL default 0, -- date the suggestion was submitted >+ `managedby` int(11) default NULL, -- borrowernumber for the librarian managing the suggestion, foreign key linking to the borrowers table >+ `manageddate` date default NULL, -- date the suggestion was updated >+ acceptedby INT(11) default NULL, -- borrowernumber for the librarian who accepted the suggestion, foreign key linking to the borrowers table >+ accepteddate date default NULL, -- date the suggestion was marked as accepted >+ rejectedby INT(11) default NULL, -- borrowernumber for the librarian who rejected the suggestion, foreign key linking to the borrowers table >+ rejecteddate date default NULL, -- date the suggestion was marked as rejected >+ `STATUS` varchar(10) NOT NULL default '', -- suggestion status (ASKED, CHECKED, ACCEPTED, or REJECTED) >+ `note` mediumtext, -- note entered on the suggestion >+ `author` varchar(80) default NULL, -- author of the suggested item >+ `title` varchar(80) default NULL, -- title of the suggested item >+ `copyrightdate` smallint(6) default NULL, -- copyright date of the suggested item >+ `publishercode` varchar(255) default NULL, -- publisher of the suggested item >+ `date` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- date and time the suggestion was updated > `volumedesc` varchar(255) default NULL, > `publicationyear` smallint(6) default 0, >- `place` varchar(255) default NULL, >- `isbn` varchar(30) default NULL, >+ `place` varchar(255) default NULL, -- publication place of the suggested item >+ `isbn` varchar(30) default NULL, -- isbn of the suggested item > `mailoverseeing` smallint(1) default 0, >- `biblionumber` int(11) default NULL, >- `reason` text, >- budgetid INT(11), >- branchcode VARCHAR(10) default NULL, >- collectiontitle text default NULL, >- itemtype VARCHAR(30) default NULL, >- quantity SMALLINT(6) default NULL, >- currency VARCHAR(3) default NULL, >- price DECIMAL(28,6) default NULL, >- total DECIMAL(28,6) default NULL, >+ `biblionumber` int(11) default NULL, -- foreign key linking the suggestion to the biblio table after the suggestion has been ordered >+ `reason` text, -- reason for making the suggestion >+ budgetid INT(11), -- foreign key linking the suggested budget to the aqbudgets table >+ branchcode VARCHAR(10) default NULL, -- foreign key linking the suggested branch to the branches table >+ collectiontitle text default NULL, -- collection name for the suggested item >+ itemtype VARCHAR(30) default NULL, -- suggested item type >+ quantity SMALLINT(6) default NULL, -- suggested quantity to be purchased >+ currency VARCHAR(3) default NULL, -- suggested currency for the suggested price >+ price DECIMAL(28,6) default NULL, -- suggested price >+ total DECIMAL(28,6) default NULL, -- suggested total cost (price*quantity updated for currency) > PRIMARY KEY (`suggestionid`), > KEY `suggestedby` (`suggestedby`), > KEY `managedby` (`managedby`) >-- >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