Bug 15524: Set limit on maximum possible holds per patron by category
[koha.git] / installer / data / mysql / atomicupdate / bug_15524.perl
1 $DBversion = 'XXX';  # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
3
4     if( !column_exists( 'branch_borrower_circ_rules', 'max_holds' ) ) {
5         $dbh->do(q{
6             ALTER TABLE branch_borrower_circ_rules ADD COLUMN max_holds INT(4) NULL DEFAULT NULL AFTER maxonsiteissueqty
7         });
8     }
9
10     if( !column_exists( 'default_borrower_circ_rules', 'max_holds' ) ) {
11         $dbh->do(q{
12             ALTER TABLE default_borrower_circ_rules ADD COLUMN max_holds INT(4) NULL DEFAULT NULL AFTER maxonsiteissueqty
13         });
14     }
15
16     SetVersion( $DBversion );
17     print "Upgrade to $DBversion done (Bug 15524 - Set limit on maximum possible holds per patron by category)\n";
18 }