|
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 |
- |
|
|