Turn hash into type

Fixes #3542
This commit is contained in:
rijkvanzanten
2021-01-12 17:03:18 -05:00
parent f00a38737b
commit 05f0bc967e
12 changed files with 51 additions and 47 deletions

View File

@@ -331,6 +331,8 @@ export class FieldsService {
column = table[type](field.field, field.schema?.numeric_precision || 10, field.schema?.numeric_scale || 5);
} else if (field.type === 'csv') {
column = table.string(field.field);
} else if (field.type === 'hash') {
column = table.string(field.field, 255);
} else {
column = table[field.type](field.field);
}