Merge pull request #73 from spamcampus/master

fix migration for text fields
This commit is contained in:
Tobe Osakwe 2019-04-26 12:14:07 -04:00 committed by GitHub
commit 39bd8a1093
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);