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

(-)a/installer/data/mysql/kohastructure.sql (-8 / +7 lines)
Lines 899-908 CREATE TABLE `import_records` ( Link Here
899
-- Table structure for `import_record_matches`
899
-- Table structure for `import_record_matches`
900
--
900
--
901
DROP TABLE IF EXISTS `import_record_matches`;
901
DROP TABLE IF EXISTS `import_record_matches`;
902
CREATE TABLE `import_record_matches` (
902
CREATE TABLE `import_record_matches` ( -- matches found when importing a batch of records
903
  `import_record_id` int(11) NOT NULL,
903
  `import_record_id` int(11) NOT NULL, -- the id given to the imported bib record (import_records.import_record_id)
904
  `candidate_match_id` int(11) NOT NULL,
904
  `candidate_match_id` int(11) NOT NULL, -- the biblio the imported record matches (biblio.biblionumber)
905
  `score` int(11) NOT NULL default 0,
905
  `score` int(11) NOT NULL default 0, -- the match score
906
  CONSTRAINT `import_record_matches_ibfk_1` FOREIGN KEY (`import_record_id`)
906
  CONSTRAINT `import_record_matches_ibfk_1` FOREIGN KEY (`import_record_id`)
907
             REFERENCES `import_records` (`import_record_id`) ON DELETE CASCADE ON UPDATE CASCADE,
907
             REFERENCES `import_records` (`import_record_id`) ON DELETE CASCADE ON UPDATE CASCADE,
908
  KEY `record_score` (`import_record_id`, `score`)
908
  KEY `record_score` (`import_record_id`, `score`)
Lines 1662-1670 CREATE TABLE `reserves` ( -- information related to holds/reserves in Koha Link Here
1662
  `itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with
1662
  `itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with
1663
  `waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library
1663
  `waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library
1664
  `expirationdate` DATE DEFAULT NULL, -- the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date)
1664
  `expirationdate` DATE DEFAULT NULL, -- the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date)
1665
  `lowestPriority` tinyint(1) NOT NULL,
1665
  `lowestPriority` tinyint(1) NOT NULL, -- has this hold been pinned to the lowest priority in the holds queue (1 for yes, 0 for no)
1666
  `suspend` BOOLEAN NOT NULL DEFAULT 0,
1666
  `suspend` BOOLEAN NOT NULL DEFAULT 0, -- in this hold suspended (1 for yes, 0 for no)
1667
  `suspend_until` DATETIME NULL DEFAULT NULL,
1667
  `suspend_until` DATETIME NULL DEFAULT NULL, -- the date this hold is suspended until (NULL for infinitely)
1668
  PRIMARY KEY (`reserve_id`),
1668
  PRIMARY KEY (`reserve_id`),
1669
  KEY priorityfoundidx (priority,found),
1669
  KEY priorityfoundidx (priority,found),
1670
  KEY `borrowernumber` (`borrowernumber`),
1670
  KEY `borrowernumber` (`borrowernumber`),
1671
- 

Return to bug 6716