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

(-)a/installer/data/mysql/atomicupdate/bug_21683_remove_column_accountno.perl (-2 / +5 lines)
Lines 5-11 if( CheckVersion( $DBversion ) ) { Link Here
5
        $dbh->do( "ALTER TABLE accountlines DROP COLUMN accountno" );
5
        $dbh->do( "ALTER TABLE accountlines DROP COLUMN accountno" );
6
    }
6
    }
7
7
8
    if( column_exists( 'statistics', 'proccode' ) ) {
9
        $dbh->do( "ALTER TABLE statistics DROP COLUMN proccode" );
10
    }
11
8
    # Always end with this (adjust the bug info)
12
    # Always end with this (adjust the bug info)
9
    SetVersion( $DBversion );
13
    SetVersion( $DBversion );
10
    print "Upgrade to $DBversion done (Bug XXXXX - description)\n";
14
    print "Upgrade to $DBversion done (Bug 21683 - Remove accountlines.accountno and statistics.proccode fields)\n";
11
}
15
}
12
- 

Return to bug 21683