Browse Source

Bug 15524: DBRev 18.06.00.020

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
18.11.x
Nick Clemens 6 years ago
parent
commit
e001070ee5
  1. 2
      Koha.pm
  2. 18
      installer/data/mysql/atomicupdate/bug_15524.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 = "18.06.00.019";
$VERSION = "18.06.00.020";
sub version {
return $VERSION;

18
installer/data/mysql/atomicupdate/bug_15524.perl

@ -1,18 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'branch_borrower_circ_rules', 'max_holds' ) ) {
$dbh->do(q{
ALTER TABLE branch_borrower_circ_rules ADD COLUMN max_holds INT(4) NULL DEFAULT NULL AFTER maxonsiteissueqty
});
}
if( !column_exists( 'default_borrower_circ_rules', 'max_holds' ) ) {
$dbh->do(q{
ALTER TABLE default_borrower_circ_rules ADD COLUMN max_holds INT(4) NULL DEFAULT NULL AFTER maxonsiteissueqty
});
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 15524 - Set limit on maximum possible holds per patron by category)\n";
}

16
installer/data/mysql/updatedatabase.pl

@ -16295,6 +16295,22 @@ INSERT IGNORE INTO columns_settings (module, page, tablename, columnname, cannot
print "Upgrade to $DBversion done (Bug 19719: Default to hiding collection code column)\n";
}
$DBversion = '18.06.00.020';
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'branch_borrower_circ_rules', 'max_holds' ) ) {
$dbh->do(q{
ALTER TABLE branch_borrower_circ_rules ADD COLUMN max_holds INT(4) NULL DEFAULT NULL AFTER maxonsiteissueqty
});
}
if( !column_exists( 'default_borrower_circ_rules', 'max_holds' ) ) {
$dbh->do(q{
ALTER TABLE default_borrower_circ_rules ADD COLUMN max_holds INT(4) NULL DEFAULT NULL AFTER maxonsiteissueqty
});
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 15524 - Set limit on maximum possible holds per patron by category)\n";
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.

Loading…
Cancel
Save