View | Details | Raw Unified | Return to bug 18936
Collapse All | Expand All

(-)a/installer/data/mysql/kohastructure.sql (-43 lines)
Lines 816-863 CREATE TABLE `import_items` ( Link Here
816
  KEY `branchcode` (`branchcode`)
816
  KEY `branchcode` (`branchcode`)
817
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
817
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
818
818
819
--
820
-- Table structure for table `issuingrules`
821
--
822
823
DROP TABLE IF EXISTS `issuingrules`;
824
CREATE TABLE `issuingrules` ( -- circulation and fine rules
825
  `categorycode` varchar(10) NOT NULL default '', -- patron category this rule is for (categories.categorycode)
826
  `itemtype` varchar(10) NOT NULL default '', -- item type this rule is for (itemtypes.itemtype)
827
  `restrictedtype` tinyint(1) default NULL, -- not used? always NULL
828
  `rentaldiscount` decimal(28,6) default NULL, -- percent discount on the rental charge for this item
829
  `reservecharge` decimal(28,6) default NULL,
830
  `fine` decimal(28,6) default NULL, -- fine amount
831
  `finedays` int(11) default NULL, -- suspension in days
832
  `maxsuspensiondays` int(11) default NULL, -- max suspension days
833
  `firstremind` int(11) default NULL, -- fine grace period
834
  `chargeperiod` int(11) default NULL, -- how often the fine amount is charged
835
  `chargeperiod_charge_at` tinyint(1) NOT NULL DEFAULT '0', -- Should fine be given at the start ( 1 ) or the end ( 0 ) of the period
836
  `accountsent` int(11) default NULL, -- not used? always NULL
837
  `chargename` varchar(100) default NULL, -- not used? always NULL
838
  `issuelength` int(4) default NULL, -- length of checkout in the unit set in issuingrules.lengthunit
839
  `lengthunit` varchar(10) default 'days', -- unit of checkout length (days, hours)
840
  `hardduedate` date default NULL, -- hard due date
841
  `hardduedatecompare` tinyint NOT NULL default "0", -- type of hard due date (1 = after, 0 = on, -1 = before)
842
  `renewalsallowed` smallint(6) NOT NULL default "0", -- how many renewals are allowed
843
  `renewalperiod` int(4) default NULL, -- renewal period in the unit set in issuingrules.lengthunit
844
  `norenewalbefore` int(4) default NULL, -- no renewal allowed until X days or hours before due date.
845
  `auto_renew` BOOLEAN default FALSE, -- automatic renewal
846
  `no_auto_renewal_after` int(4) default NULL, -- no auto renewal allowed after X days or hours after the issue date
847
  `no_auto_renewal_after_hard_limit` date default NULL, -- no auto renewal allowed after a given date
848
  `reservesallowed` smallint(6) NOT NULL default "0", -- how many holds are allowed
849
  `holds_per_record` SMALLINT(6) NOT NULL DEFAULT 1, -- How many holds a patron can have on a given bib
850
  `branchcode` varchar(10) NOT NULL default '', -- the branch this rule is for (branches.branchcode)
851
  overduefinescap decimal(28,6) default NULL, -- the maximum amount of an overdue fine
852
  cap_fine_to_replacement_price BOOLEAN NOT NULL DEFAULT  '0', -- cap the fine based on item's replacement price
853
  onshelfholds tinyint(1) NOT NULL default 0, -- allow holds for items that are on shelf
854
  opacitemholds char(1) NOT NULL default 'N', -- allow opac users to place specific items on hold
855
  article_requests enum('no','yes','bib_only','item_only') NOT NULL DEFAULT 'no', -- allow article requests to be placed,
856
  PRIMARY KEY  (`branchcode`,`categorycode`,`itemtype`),
857
  KEY `categorycode` (`categorycode`),
858
  KEY `itemtype` (`itemtype`)
859
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
860
861
--
819
--
862
-- Table structure for table `refund_lost_item_fee_rules`
820
-- Table structure for table `refund_lost_item_fee_rules`
863
--
821
--
864
- 

Return to bug 18936