fix migration for text fields

This commit is contained in:
S.-C. Lee 2019-04-26 23:44:25 +09:00
parent bef85a4b02
commit 7e5f5d1f32

View file

@ -27,7 +27,7 @@ abstract class Table {
return declare(name, ColumnType.timeStampWithTimeZone); return declare(name, ColumnType.timeStampWithTimeZone);
} }
MigrationColumn text(String name) => declare(name, ColumnType.serial); MigrationColumn text(String name) => declare(name, ColumnType.text);
MigrationColumn varChar(String name, {int length}) { MigrationColumn varChar(String name, {int length}) {
if (length == null) return declare(name, ColumnType.varChar); if (length == null) return declare(name, ColumnType.varChar);