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

(-)a/installer/data/mysql/kohastructure.sql (-5 / +4 lines)
Lines 2007-2021 DROP TABLE IF EXISTS `statistics`; Link Here
2007
CREATE TABLE `statistics` ( -- information related to transactions (circulation and fines) in Koha
2007
CREATE TABLE `statistics` ( -- information related to transactions (circulation and fines) in Koha
2008
  `datetime` datetime default NULL, -- date and time of the transaction
2008
  `datetime` datetime default NULL, -- date and time of the transaction
2009
  `branch` varchar(10) default NULL, -- foreign key, branch where the transaction occurred
2009
  `branch` varchar(10) default NULL, -- foreign key, branch where the transaction occurred
2010
  `proccode` varchar(4) default NULL, -- proceedure code 
2010
  `proccode` varchar(4) default NULL, -- type of procedure used when making payments (does not appear in the code)
2011
  `value` double(16,4) default NULL, -- monetary value associated with the transaction
2011
  `value` double(16,4) default NULL, -- monetary value associated with the transaction
2012
  `type` varchar(16) default NULL, -- transaction type (locause, issue, return, renew, writeoff, payment, Credit*)
2012
  `type` varchar(16) default NULL, -- transaction type (locause, issue, return, renew, writeoff, payment, Credit*)
2013
  `other` mediumtext,
2013
  `other` mediumtext, -- used by SIP
2014
  `usercode` varchar(10) default NULL,
2014
  `usercode` varchar(10) default NULL, -- unused in Koha
2015
  `itemnumber` int(11) default NULL, -- foreign key from the items table, links transaction to a specific item
2015
  `itemnumber` int(11) default NULL, -- foreign key from the items table, links transaction to a specific item
2016
  `itemtype` varchar(10) default NULL, -- foreign key from the itemtypes table, links transaction to a specific item type
2016
  `itemtype` varchar(10) default NULL, -- foreign key from the itemtypes table, links transaction to a specific item type
2017
  `borrowernumber` int(11) default NULL, -- foreign key from the borrowers table, links transaction to a specific borrower
2017
  `borrowernumber` int(11) default NULL, -- foreign key from the borrowers table, links transaction to a specific borrower
2018
  `associatedborrower` int(11) default NULL,
2018
  `associatedborrower` int(11) default NULL, -- unused in Koha
2019
  `ccode` varchar(10) default NULL, -- foreign key from the items table, links transaction to a specific collection code
2019
  `ccode` varchar(10) default NULL, -- foreign key from the items table, links transaction to a specific collection code
2020
  KEY `timeidx` (`datetime`),
2020
  KEY `timeidx` (`datetime`),
2021
  KEY `branch_idx` (`branch`),
2021
  KEY `branch_idx` (`branch`),
2022
- 

Return to bug 10703