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

(-)a/installer/data/mysql/atomicupdate/bug_17845.perl (-4 / +3 lines)
Lines 2-11 $DBversion = 'XXX'; # will be replaced by the RM Link Here
2
if( CheckVersion( $DBversion ) ) {
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( "DROP TABLE IF EXISTS printers" );
3
    $dbh->do( "DROP TABLE IF EXISTS printers" );
4
4
5
    if( !column_exists( 'branches', 'branchprinter' ) ) {
5
    if( column_exists( 'branches', 'branchprinter' ) ) {
6
      $dbh->do( "ALTER TABLE branches DROP COLUMN branchprinter" );
6
        $dbh->do( "ALTER TABLE branches DROP COLUMN branchprinter" );
7
    }
7
    }
8
    
8
9
    $dbh->do(qq{ DELETE FROM systempreferences WHERE variable = "printcirculationslips"} );
9
    $dbh->do(qq{ DELETE FROM systempreferences WHERE variable = "printcirculationslips"} );
10
10
11
    SetVersion( $DBversion );
11
    SetVersion( $DBversion );
12
- 

Return to bug 17845