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

(-)a/installer/data/mysql/updatedatabase.pl (-3 lines)
Lines 8792-8803 while (readdir $dirh) { Link Here
8792
    next unless $_ =~ /\.sql$/; # skip non SQL files
8792
    next unless $_ =~ /\.sql$/; # skip non SQL files
8793
    # open and read file;
8793
    # open and read file;
8794
    open FILE, "<",  C4::Context->config('intranetdir') . '/installer/data/mysql/db_update/'.$_ or die "ERROR, impossible to open $_";
8794
    open FILE, "<",  C4::Context->config('intranetdir') . '/installer/data/mysql/db_update/'.$_ or die "ERROR, impossible to open $_";
8795
    my $sql_to_execute;
8796
    while ( <FILE> ) {
8795
    while ( <FILE> ) {
8797
        my $line = $_;
8796
        my $line = $_;
8798
        $line =~ s/\n//g;
8797
        $line =~ s/\n//g;
8799
        $dbh->do($line) if $line;
8798
        $dbh->do($line) if $line;
8800
        $sql_to_execute .= $line;
8801
    }
8799
    }
8802
}
8800
}
8803
8801
8804
- 

Return to bug 13068