Bug 15524: DBRev 18.06.00.020
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
5bdf9acf67
commit
e001070ee5
3 changed files with 17 additions and 19 deletions
2
Koha.pm
2
Koha.pm
|
@ -29,7 +29,7 @@ use vars qw{ $VERSION };
|
||||||
# - #4 : the developer version. The 4th number is the database subversion.
|
# - #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
|
# used by developers when the database changes. updatedatabase take care of the changes itself
|
||||||
# and is automatically called by Auth.pm when needed.
|
# and is automatically called by Auth.pm when needed.
|
||||||
$VERSION = "18.06.00.019";
|
$VERSION = "18.06.00.020";
|
||||||
|
|
||||||
sub version {
|
sub version {
|
||||||
return $VERSION;
|
return $VERSION;
|
||||||
|
|
|
@ -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";
|
|
||||||
}
|
|
|
@ -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";
|
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
|
# SEE bug 13068
|
||||||
# if there is anything in the atomicupdate, read and execute it.
|
# if there is anything in the atomicupdate, read and execute it.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue