1 $DBversion = 'XXX'; # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
11 chargeperiod_charge_at
22 no_auto_renewal_after_hard_limit
26 cap_fine_to_replacement_price
34 if ( column_exists( 'issuingrules', 'categorycode' ) ) {
35 foreach my $column ( @columns ) {
37 INSERT INTO circulation_rules ( categorycode, branchcode, itemtype, rule_name, rule_value )
38 SELECT categorycode, branchcode, itemtype, \'$column\', COALESCE( $column, '' )
42 $dbh->do("DROP TABLE issuingrules");
45 SetVersion( $DBversion );
46 print "Upgrade to $DBversion done (Bug 18936: Convert issuingrules fields to circulation_rules)\n";