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

(-)a/installer/data/mysql/db_revs/241200018.pl (-2 / +3 lines)
Lines 12-18 return { Link Here
12
        $sth->execute();
12
        $sth->execute();
13
        my $column_info = $sth->fetchrow_hashref();
13
        my $column_info = $sth->fetchrow_hashref();
14
14
15
        if ( $column_info && $column_info->{Type} eq 'int(11)' ) {
15
        if ( column_exists('additional_field_values', 'new_record_id') ) {
16
            die "The database is an inconsistent state, a previous upgrade went wrong. Please try a new upgrade from a previous backup and using a newest version of Koha";
17
        } elsif ( $column_info && $column_info->{Type} eq 'int(11)' ) {
16
18
17
            # Only run the migration if record_id is still an integer type
19
            # Only run the migration if record_id is still an integer type
18
            say_info( $out, "Converting record_id from int(11) to VARCHAR(11)...\n" );
20
            say_info( $out, "Converting record_id from int(11) to VARCHAR(11)...\n" );
19
- 

Return to bug 40292