change MySQL/MariaDB SQL statement for changeColumnType method
This commit is contained in:
parent
e1679a5115
commit
23a8d94cd0
2 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ class MariaDbAlterTable extends Table implements MutableTable {
|
||||||
@override
|
@override
|
||||||
void changeColumnType(String name, ColumnType type, {int length = 256}) {
|
void changeColumnType(String name, ColumnType type, {int length = 256}) {
|
||||||
_stack.add(
|
_stack.add(
|
||||||
'ALTER COLUMN $name TYPE ${MariaDbGenerator.columnType(MigrationColumn(type, length: length))}');
|
'MODIFY $name ${MariaDbGenerator.columnType(MigrationColumn(type, length: length))}');
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -152,7 +152,7 @@ class MysqlAlterTable extends Table implements MutableTable {
|
||||||
@override
|
@override
|
||||||
void changeColumnType(String name, ColumnType type, {int length = 256}) {
|
void changeColumnType(String name, ColumnType type, {int length = 256}) {
|
||||||
_stack.add(
|
_stack.add(
|
||||||
'ALTER COLUMN $name TYPE ${MySqlGenerator.columnType(MigrationColumn(type, length: length))}');
|
'MODIFY $name ${MySqlGenerator.columnType(MigrationColumn(type, length: length))}');
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Reference in a new issue