Bugzilla – Attachment 10832 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 issuingrules table
Bug-6716-document-issuingrules-table.patch (text/plain), 3.80 KB, created by
Nicole C. Engard
on 2012-07-13 18:33:05 UTC
(
hide
)
Description:
Bug 6716: document issuingrules table
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2012-07-13 18:33:05 UTC
Size:
3.80 KB
patch
obsolete
>From 3c58d0c972c18cdd0ec2c6c8da2fc9aa3cef8a70 Mon Sep 17 00:00:00 2001 >From: Nicole C. Engard <nengard@bywatersolutions.com> >Date: Fri, 13 Jul 2012 14:32:34 -0400 >Subject: [PATCH] Bug 6716: document issuingrules table > >--- > installer/data/mysql/kohastructure.sql | 44 ++++++++++++++++---------------- > 1 files changed, 22 insertions(+), 22 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 3b9827a..b97be27 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -485,8 +485,8 @@ CREATE TABLE `branch_borrower_circ_rules` ( > -- > > DROP TABLE IF EXISTS `default_borrower_circ_rules`; >-CREATE TABLE `default_borrower_circ_rules` ( >- `categorycode` VARCHAR(10) NOT NULL, >+CREATE TABLE `default_borrower_circ_rules` ( -- default checkout rules found under "Default checkout, hold and return policy" >+ `categorycode` VARCHAR(10) NOT NULL, -- patron category this rul > `maxissueqty` int(4) default NULL, > PRIMARY KEY (`categorycode`), > CONSTRAINT `borrower_borrower_circ_rules_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`) >@@ -978,26 +978,26 @@ CREATE TABLE `issues` ( -- information related to check outs or issues > -- > > DROP TABLE IF EXISTS `issuingrules`; >-CREATE TABLE `issuingrules` ( >- `categorycode` varchar(10) NOT NULL default '', >- `itemtype` varchar(10) NOT NULL default '', >- `restrictedtype` tinyint(1) default NULL, >- `rentaldiscount` decimal(28,6) default NULL, >- `reservecharge` decimal(28,6) default NULL, >- `fine` decimal(28,6) default NULL, >- `finedays` int(11) default NULL, >- `firstremind` int(11) default NULL, >- `chargeperiod` int(11) default NULL, >- `accountsent` int(11) default NULL, >- `chargename` varchar(100) default NULL, >- `maxissueqty` int(4) default NULL, >- `issuelength` int(4) default NULL, >- `lengthunit` varchar(10) default 'days', >- `hardduedate` date default NULL, >- `hardduedatecompare` tinyint NOT NULL default "0", >- `renewalsallowed` smallint(6) NOT NULL default "0", >- `reservesallowed` smallint(6) NOT NULL default "0", >- `branchcode` varchar(10) NOT NULL default '', >+CREATE TABLE `issuingrules` ( -- circulation and fine rules >+ `categorycode` varchar(10) NOT NULL default '', -- patron category this rule is for (categories.categorycode) >+ `itemtype` varchar(10) NOT NULL default '', -- item type this rule is for (itemtypes.itemtype) >+ `restrictedtype` tinyint(1) default NULL, -- not used? always NULL >+ `rentaldiscount` decimal(28,6) default NULL, -- percent discount on the rental charge for this item >+ `reservecharge` decimal(28,6) default NULL, >+ `fine` decimal(28,6) default NULL, -- fine amount >+ `finedays` int(11) default NULL, -- suspension in days >+ `firstremind` int(11) default NULL, -- fine grace period >+ `chargeperiod` int(11) default NULL, -- how often the fine amount is charged >+ `accountsent` int(11) default NULL, -- not used? always NULL >+ `chargename` varchar(100) default NULL, -- not used? always NULL >+ `maxissueqty` int(4) default NULL, -- total number of checkouts allowed >+ `issuelength` int(4) default NULL, -- length of checkout in the unit set in issuingrules.lengthunit >+ `lengthunit` varchar(10) default 'days', -- unit of checkout length (days, hours) >+ `hardduedate` date default NULL, -- hard due date >+ `hardduedatecompare` tinyint NOT NULL default "0", -- type of hard due date (1 = after, 0 = on, -1 = before) >+ `renewalsallowed` smallint(6) NOT NULL default "0", -- how many renewals are allowed >+ `reservesallowed` smallint(6) NOT NULL default "0", -- how many holds are allowed >+ `branchcode` varchar(10) NOT NULL default '', -- the branch this rule is for (branches.branchcode) > PRIMARY KEY (`branchcode`,`categorycode`,`itemtype`), > KEY `categorycode` (`categorycode`), > KEY `itemtype` (`itemtype`) >-- >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