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

@@ -51,6 +51,8 @@ export default async function runSeed(database: Knex) {
column = tableBuilder.increments();
} else if (columnInfo.type === 'csv') {
column = tableBuilder.string(columnName);
} else if (columnInfo.type === 'hash') {
column = tableBuilder.string(columnName, 255);
} else {
column = tableBuilder[columnInfo.type!](columnName);
}