fix migration for text fields
This commit is contained in:
parent
bef85a4b02
commit
7e5f5d1f32
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue