diff --git a/installer/data/mysql/db_revs/241200018.pl b/installer/data/mysql/db_revs/241200018.pl index 0064152795..5507773824 100755 --- a/installer/data/mysql/db_revs/241200018.pl +++ b/installer/data/mysql/db_revs/241200018.pl @@ -22,7 +22,7 @@ return { ); $dbh->do(q{ UPDATE additional_field_values SET new_record_id = CAST(record_id AS CHAR(11)); }); $dbh->do(q{ ALTER TABLE additional_field_values DROP COLUMN record_id; }); - $dbh->do(q{ ALTER TABLE additional_field_values RENAME COLUMN new_record_id TO record_id; }); + $dbh->do(q{ ALTER TABLE additional_field_values CHANGE COLUMN new_record_id record_id VARCHAR(11); }); say_success( $out, "Converted record_id to VARCHAR" ); } else { diff --git a/installer/data/mysql/db_revs/241200042.pl b/installer/data/mysql/db_revs/241200042.pl index 1e1ae6cb03..f49864efb0 100755 --- a/installer/data/mysql/db_revs/241200042.pl +++ b/installer/data/mysql/db_revs/241200042.pl @@ -12,7 +12,7 @@ return { if ( column_exists( 'aqbookseller_aliases', 'alias_id' ) ) { $dbh->do( q{ - ALTER TABLE aqbookseller_aliases RENAME COLUMN alias_id TO vendor_alias_id; + ALTER TABLE aqbookseller_aliases CHANGE COLUMN alias_id vendor_alias_id INT(11); } ); say_success( diff --git a/installer/data/mysql/db_revs/241200043.pl b/installer/data/mysql/db_revs/241200043.pl index a698167e55..2b3926871d 100755 --- a/installer/data/mysql/db_revs/241200043.pl +++ b/installer/data/mysql/db_revs/241200043.pl @@ -12,7 +12,7 @@ return { if ( column_exists( 'aqbookseller_interfaces', 'interface_id' ) ) { $dbh->do( q{ - ALTER TABLE aqbookseller_interfaces RENAME COLUMN interface_id TO vendor_interface_id; + ALTER TABLE aqbookseller_interfaces CHANGE COLUMN interface_id vendor_interface_id INT(11); } ); say_success(