From b9cad8e4d5ac21730cef4d00aa74cfe2f89acb87 Mon Sep 17 00:00:00 2001 From: pyra Date: Fri, 23 Feb 2018 00:16:02 +0800 Subject: [PATCH] Add missing column in table 'users' --- database/db.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/db.js b/database/db.js index f1ec75a..b329749 100644 --- a/database/db.js +++ b/database/db.js @@ -28,6 +28,7 @@ let init = function(db){ table.string('username') table.string('password') table.string('token') + table.integer('enabled') table.integer('timestamp') }).then(() => { db.table('users').where({username: 'root'}).then((user) => { @@ -47,4 +48,4 @@ let init = function(db){ }) } -module.exports = init \ No newline at end of file +module.exports = init