Bug 16787: Add noReservesAllowed to club holds
Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
0f23622041
commit
087a4f4bc9
|
|
@ -0,0 +1,16 @@
|
|||
$DBversion = 'XXX';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
$dbh->do(q{
|
||||
ALTER TABLE club_holds_to_patron_holds
|
||||
MODIFY COLUMN error_code
|
||||
ENUM ( 'damaged', 'ageRestricted', 'itemAlreadyOnHold',
|
||||
'tooManyHoldsForThisRecord', 'tooManyReservesToday',
|
||||
'tooManyReserves', 'notReservable', 'cannotReserveFromOtherBranches',
|
||||
'libraryNotFound', 'libraryNotPickupLocation', 'cannotBeTransferred',
|
||||
'noReservesAllowed'
|
||||
)
|
||||
});
|
||||
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 16787: Add noReservesAllowed to club holds error codes)\n";
|
||||
}
|
||||
|
|
@ -1853,7 +1853,7 @@ CREATE TABLE `club_holds_to_patron_holds` (
|
|||
`club_hold_id` int(11) NOT NULL,
|
||||
`patron_id` int(11) NOT NULL,
|
||||
`hold_id` int(11) DEFAULT NULL,
|
||||
`error_code` enum('damaged','ageRestricted','itemAlreadyOnHold','tooManyHoldsForThisRecord','tooManyReservesToday','tooManyReserves','notReservable','cannotReserveFromOtherBranches','libraryNotFound','libraryNotPickupLocation','cannotBeTransferred') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`error_code` enum('damaged','ageRestricted','itemAlreadyOnHold','tooManyHoldsForThisRecord','tooManyReservesToday','tooManyReserves','notReservable','cannotReserveFromOtherBranches','libraryNotFound','libraryNotPickupLocation','cannotBeTransferred','noReservesAllowed') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`error_message` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `clubs_holds_paton_holds_ibfk_1` (`club_hold_id`),
|
||||
|
|
|
|||
Loading…
Reference in New Issue