From 236a4042c9aff5892ba1977dd1bd865d19d5f769 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 26 Mar 2020 00:17:38 +0100 Subject: [PATCH] fix script --- migrations/000_signups_addColumn_memo_timestamp.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/migrations/000_signups_addColumn_memo_timestamp.js b/migrations/000_signups_addColumn_memo_timestamp.js index f753526..d8c246c 100644 --- a/migrations/000_signups_addColumn_memo_timestamp.js +++ b/migrations/000_signups_addColumn_memo_timestamp.js @@ -28,9 +28,7 @@ exports.up = function (knex) { table.boolean('late') table.timestamp('timestamp').defaultTo(knex.fn.now()) table.string('memo').nullable() - return table - }).then(_ => { - knex('signups').insert(rows).then(res) + res() }).catch(rej) }) })