diff --git a/packages/orm/angel_migration_runner/lib/src/mariadb/table.dart b/packages/orm/angel_migration_runner/lib/src/mariadb/table.dart index c64b7607..5532d81a 100644 --- a/packages/orm/angel_migration_runner/lib/src/mariadb/table.dart +++ b/packages/orm/angel_migration_runner/lib/src/mariadb/table.dart @@ -153,7 +153,7 @@ class MariaDbAlterTable extends Table implements MutableTable { @override void changeColumnType(String name, ColumnType type, {int length = 256}) { _stack.add( - 'ALTER COLUMN $name TYPE ${MariaDbGenerator.columnType(MigrationColumn(type, length: length))}'); + 'MODIFY $name ${MariaDbGenerator.columnType(MigrationColumn(type, length: length))}'); } @override diff --git a/packages/orm/angel_migration_runner/lib/src/mysql/table.dart b/packages/orm/angel_migration_runner/lib/src/mysql/table.dart index 897dd47d..34302b06 100644 --- a/packages/orm/angel_migration_runner/lib/src/mysql/table.dart +++ b/packages/orm/angel_migration_runner/lib/src/mysql/table.dart @@ -152,7 +152,7 @@ class MysqlAlterTable extends Table implements MutableTable { @override void changeColumnType(String name, ColumnType type, {int length = 256}) { _stack.add( - 'ALTER COLUMN $name TYPE ${MySqlGenerator.columnType(MigrationColumn(type, length: length))}'); + 'MODIFY $name ${MySqlGenerator.columnType(MigrationColumn(type, length: length))}'); } @override