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

(-)a/installer/data/mysql/atomicupdate/bug_24722.perl (+4 lines)
Lines 4-9 if( CheckVersion( $DBversion ) ) { Link Here
4
        ALTER TABLE reserves MODIFY priority SMALLINT(6) NOT NULL
4
        ALTER TABLE reserves MODIFY priority SMALLINT(6) NOT NULL
5
    |);
5
    |);
6
6
7
    $dbh->do(q|
8
        ALTER TABLE old_reserves MODIFY priority SMALLINT(6) NOT NULL
9
    |);
10
7
    SetVersion( $DBversion );
11
    SetVersion( $DBversion );
8
    print "Upgrade to $DBversion done (Bug 24722 - Enforce NOT NULL constraint for reserves.priority)\n";
12
    print "Upgrade to $DBversion done (Bug 24722 - Enforce NOT NULL constraint for reserves.priority)\n";
9
}
13
}
(-)a/installer/data/mysql/kohastructure.sql (-2 / +1 lines)
Lines 1797-1803 CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have b Link Here
1797
  `reminderdate` date default NULL, -- currently unused
1797
  `reminderdate` date default NULL, -- currently unused
1798
  `cancellationdate` date default NULL, -- the date this hold was cancelled
1798
  `cancellationdate` date default NULL, -- the date this hold was cancelled
1799
  `reservenotes` LONGTEXT, -- notes related to this hold
1799
  `reservenotes` LONGTEXT, -- notes related to this hold
1800
  `priority` smallint(6) default NULL, -- where in the queue the patron sits
1800
  `priority` smallint(6) NOT NULL, -- where in the queue the patron sits
1801
  `found` varchar(1) default NULL, -- a one letter code defining what the status is of the hold is after it has been confirmed
1801
  `found` varchar(1) default NULL, -- a one letter code defining what the status is of the hold is after it has been confirmed
1802
  `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this hold was last updated
1802
  `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this hold was last updated
1803
  `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
1803
  `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
1804
- 

Return to bug 24722