From eb6231420a5463b5617db5ce261e02af3ec6beca Mon Sep 17 00:00:00 2001 From: Nicole C. Engard Date: Wed, 18 Jul 2012 21:27:12 -0400 Subject: [PATCH] Bug 6716: Update reserves table This table had one field that I hadn't documented before and two new fields for hold suspensions. All of these are now updated. --- installer/data/mysql/kohastructure.sql | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index 3b9827a..ce474c2 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -899,10 +899,10 @@ CREATE TABLE `import_records` ( -- Table structure for `import_record_matches` -- DROP TABLE IF EXISTS `import_record_matches`; -CREATE TABLE `import_record_matches` ( - `import_record_id` int(11) NOT NULL, - `candidate_match_id` int(11) NOT NULL, - `score` int(11) NOT NULL default 0, +CREATE TABLE `import_record_matches` ( -- matches found when importing a batch of records + `import_record_id` int(11) NOT NULL, -- the id given to the imported bib record (import_records.import_record_id) + `candidate_match_id` int(11) NOT NULL, -- the biblio the imported record matches (biblio.biblionumber) + `score` int(11) NOT NULL default 0, -- the match score CONSTRAINT `import_record_matches_ibfk_1` FOREIGN KEY (`import_record_id`) REFERENCES `import_records` (`import_record_id`) ON DELETE CASCADE ON UPDATE CASCADE, KEY `record_score` (`import_record_id`, `score`) @@ -1662,9 +1662,9 @@ CREATE TABLE `reserves` ( -- information related to holds/reserves in Koha `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 `waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library `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) - `lowestPriority` tinyint(1) NOT NULL, - `suspend` BOOLEAN NOT NULL DEFAULT 0, - `suspend_until` DATETIME NULL DEFAULT NULL, + `lowestPriority` tinyint(1) NOT NULL, -- has this hold been pinned to the lowest priority in the holds queue (1 for yes, 0 for no) + `suspend` BOOLEAN NOT NULL DEFAULT 0, -- in this hold suspended (1 for yes, 0 for no) + `suspend_until` DATETIME NULL DEFAULT NULL, -- the date this hold is suspended until (NULL for infinitely) PRIMARY KEY (`reserve_id`), KEY priorityfoundidx (priority,found), KEY `borrowernumber` (`borrowernumber`), -- 1.7.2.3