Browse Source

Bug 16787: DBRev 20.12.00.036

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Jonathan Druart 2 years ago
parent
commit
1ac1067b64
  1. 2
      Koha.pm
  2. 16
      installer/data/mysql/atomicupdate/bug_16787_add_noReservesAllowed_to_club_holds.perl
  3. 16
      installer/data/mysql/updatedatabase.pl

2
Koha.pm

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "20.12.00.035";
$VERSION = "20.12.00.036";
sub version {
return $VERSION;

16
installer/data/mysql/atomicupdate/bug_16787_add_noReservesAllowed_to_club_holds.perl

@ -1,16 +0,0 @@
$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";
}

16
installer/data/mysql/updatedatabase.pl

@ -23874,6 +23874,22 @@ if( CheckVersion( $DBversion ) ) {
NewVersion( $DBversion, 23207, "Add automatic_checkin to itemtypes table");
}
$DBversion = '20.12.00.036';
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'
)
});
NewVersion( $DBversion, 16787, "Add noReservesAllowed to club holds error codes");
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';

Loading…
Cancel
Save