This commit is contained in:
rijkvanzanten
2020-09-14 18:23:08 -04:00
parent f2cfa9d188
commit 8a0651e2ca

View File

@@ -49,6 +49,8 @@ export default async function runSeed(knex: Knex, seed: string) {
column = table.string(columnName, columnInfo.length);
} else if (columnInfo.increments) {
column = table.increments();
} else if (columnInfo.type === 'csv') {
column = table.string(columnName);
} else {
column = table[columnInfo.type!](columnName);
}