Skip to content

Commit 15c20ae

Browse files
committed
Use mapPostgreSQLDatatypes in showFields
1 parent d83858b commit 15c20ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/migration.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ function mixinMigration(PostgreSQL) {
2020
if (err) {
2121
return cb(err);
2222
} else {
23+
fields.forEach(function(field) {
24+
field.type = mapPostgreSQLDatatypes(field.type, field.length);
25+
});
2326
cb(err, fields);
2427
}
2528
});

0 commit comments

Comments
 (0)