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

(-)a/installer/data/mysql/atomicupdate/bug_40292.pl (-1 / +1 lines)
Lines 8-14 return { Link Here
8
        my ($args) = @_;
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
10
11
        if ( column_exists('additional_field_values', 'new_record_id') ) {
11
        if ( column_exists( 'additional_field_values', 'new_record_id' ) ) {
12
            $dbh->do(
12
            $dbh->do(
13
                q{ ALTER TABLE additional_field_values CHANGE COLUMN new_record_id record_id VARCHAR(11) NOT NULL DEFAULT '' COMMENT 'record_id'; }
13
                q{ ALTER TABLE additional_field_values CHANGE COLUMN new_record_id record_id VARCHAR(11) NOT NULL DEFAULT '' COMMENT 'record_id'; }
14
            );
14
            );
(-)a/installer/data/mysql/db_revs/241200018.pl (-3 / +3 lines)
Lines 12-19 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_exists('additional_field_values', 'new_record_id') ) {
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";
16
            die
17
                "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)' ) {
18
        } elsif ( $column_info && $column_info->{Type} eq 'int(11)' ) {
18
19
19
            # Only run the migration if record_id is still an integer type
20
            # Only run the migration if record_id is still an integer type
20
- 

Return to bug 40292