View | Details | Raw Unified | Return to bug 18930
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_18930.perl (-2 / +1 lines)
Lines 3-9 if( CheckVersion( $DBversion ) ) { Link Here
3
    if ( column_exists( 'refund_lost_item_fee_rules', 'refund' ) ) {
3
    if ( column_exists( 'refund_lost_item_fee_rules', 'refund' ) ) {
4
        $dbh->do("
4
        $dbh->do("
5
            INSERT INTO circulation_rules ( categorycode, branchcode, itemtype, rule_name, rule_value )
5
            INSERT INTO circulation_rules ( categorycode, branchcode, itemtype, rule_name, rule_value )
6
            SELECT NULL, branchcode, NULL, 'refund', refund
6
            SELECT NULL, IF(branchcode='*', NULL, branchcode), NULL, 'refund', refund
7
            FROM refund_lost_item_fee_rules
7
            FROM refund_lost_item_fee_rules
8
        ");
8
        ");
9
        $dbh->do("DROP TABLE refund_lost_item_fee_rules");
9
        $dbh->do("DROP TABLE refund_lost_item_fee_rules");
10
- 

Return to bug 18930