Bug 24722: reserves.priority must default to 1 at DB level
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
8b3d539309
commit
27a19916df
|
|
@ -1757,7 +1757,7 @@ CREATE TABLE `reserves` ( -- information related to holds/reserves in Koha
|
|||
`reminderdate` date default NULL, -- currently unused
|
||||
`cancellationdate` date default NULL, -- the date this hold was cancelled
|
||||
`reservenotes` LONGTEXT, -- notes related to this hold
|
||||
`priority` smallint(6) NOT NULL, -- where in the queue the patron sits
|
||||
`priority` smallint(6) NOT NULL DEFAULT 1, -- where in the queue the patron sits
|
||||
`found` varchar(1) default NULL, -- a one letter code defining what the status is of the hold is after it has been confirmed
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this hold was last updated
|
||||
`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
|
||||
|
|
@ -1797,7 +1797,7 @@ CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have b
|
|||
`reminderdate` date default NULL, -- currently unused
|
||||
`cancellationdate` date default NULL, -- the date this hold was cancelled
|
||||
`reservenotes` LONGTEXT, -- notes related to this hold
|
||||
`priority` smallint(6) NOT NULL, -- where in the queue the patron sits
|
||||
`priority` smallint(6) NOT NULL DEFAULT 1, -- where in the queue the patron sits
|
||||
`found` varchar(1) default NULL, -- a one letter code defining what the status is of the hold is after it has been confirmed
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this hold was last updated
|
||||
`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
|
||||
|
|
|
|||
|
|
@ -21109,7 +21109,7 @@ if( CheckVersion( $DBversion ) ) {
|
|||
|);
|
||||
|
||||
$dbh->do(q|
|
||||
ALTER TABLE reserves MODIFY priority SMALLINT(6) NOT NULL
|
||||
ALTER TABLE reserves MODIFY priority SMALLINT(6) NOT NULL DEFAULT 1
|
||||
|);
|
||||
|
||||
$dbh->do(q|
|
||||
|
|
@ -21117,7 +21117,7 @@ if( CheckVersion( $DBversion ) ) {
|
|||
|);
|
||||
|
||||
$dbh->do(q|
|
||||
ALTER TABLE old_reserves MODIFY priority SMALLINT(6) NOT NULL
|
||||
ALTER TABLE old_reserves MODIFY priority SMALLINT(6) NOT NULL DEFAULT 1
|
||||
|);
|
||||
|
||||
SetVersion( $DBversion );
|
||||
|
|
|
|||
Loading…
Reference in New Issue