Merge pull request #127 from Garthi/orm_migration_column_change_fix
change MySQL/MariaDB SQL statement for changeColumnType method
This commit is contained in:
commit
ab36e7ccac
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue