Bug 15486: (follow-up) Default to unlimited
[koha_ffzg] / installer / data / mysql / atomicupdate / bug_15486_max_holds_per_day.perl
1 $DBversion = "XXX";
2 if ( CheckVersion($DBversion) ) {
3
4     if ( !column_exists( 'issuingrules', 'holds_per_day' ) ) {
5         $dbh->do(q{
6             ALTER TABLE `issuingrules`
7                 ADD COLUMN `holds_per_day` SMALLINT(6) DEFAULT NULL
8                 AFTER `holds_per_record`
9         });
10     }
11
12     print "Upgrade to $DBversion done (Bug 15486: Restrict number of holds placed by day)\n";
13     SetVersion($DBversion);
14 }