Bug 6716: Update reserves table
authorNicole C. Engard <nengard@bywatersolutions.com>
Thu, 19 Jul 2012 02:01:13 +0000 (22:01 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 23 Jul 2012 16:23:35 +0000 (18:23 +0200)
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

index 48c46f3..18c5af5 100644 (file)
@@ -1464,9 +1464,9 @@ CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have b
   `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 `old_reserves_borrowernumber` (`borrowernumber`),
   KEY `old_reserves_biblionumber` (`biblionumber`),