Bug 25534: Update database
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Rebecca Coert <rcoert@arlingtonva.us> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
deee485a24
commit
f840342c0a
|
|
@ -0,0 +1,16 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if ( CheckVersion( $DBversion ) ) {
|
||||
if ( !column_exists( 'reserves', 'cancellation_reason' ) ) {
|
||||
$dbh->do(q{
|
||||
ALTER TABLE reserves ADD COLUMN `cancellation_reason` varchar(80) default NULL AFTER cancellationdate;
|
||||
});
|
||||
}
|
||||
|
||||
if ( !column_exists( 'old_reserves', 'cancellation_reason' ) ) {
|
||||
$dbh->do(q{
|
||||
ALTER TABLE old_reserves ADD COLUMN `cancellation_reason` varchar(80) default NULL AFTER cancellationdate;
|
||||
});
|
||||
}
|
||||
|
||||
NewVersion( $DBversion, 25534, "Add ability to send an email specifying a reason when canceling a hold");
|
||||
}
|
||||
|
|
@ -1760,6 +1760,7 @@ CREATE TABLE `reserves` ( -- information related to holds/reserves in Koha
|
|||
`notificationdate` date default NULL, -- currently unused
|
||||
`reminderdate` date default NULL, -- currently unused
|
||||
`cancellationdate` date default NULL, -- the date this hold was cancelled
|
||||
`cancellation_reason` varchar(80) default NULL, -- optional authorised value CANCELLATION_REASON
|
||||
`reservenotes` LONGTEXT, -- notes related to this hold
|
||||
`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
|
||||
|
|
@ -1800,6 +1801,7 @@ CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have b
|
|||
`notificationdate` date default NULL, -- currently unused
|
||||
`reminderdate` date default NULL, -- currently unused
|
||||
`cancellationdate` date default NULL, -- the date this hold was cancelled
|
||||
`cancellation_reason` varchar(80) default NULL, -- optional authorised value CANCELLATION_REASON
|
||||
`reservenotes` LONGTEXT, -- notes related to this hold
|
||||
`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
|
||||
|
|
|
|||
Loading…
Reference in New Issue