aboutsummaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorpyra <[email protected]>2018-02-23 00:16:02 +0800
committerGitHub <[email protected]>2018-02-23 00:16:02 +0800
commitb9cad8e4d5ac21730cef4d00aa74cfe2f89acb87 (patch)
treed61de93808e5e38358e96547e4a5a35325741c75 /database
parentIn theory this will enable us to disable users and not break already running ... (diff)
downloadhost.fuwn.me-b9cad8e4d5ac21730cef4d00aa74cfe2f89acb87.tar.xz
host.fuwn.me-b9cad8e4d5ac21730cef4d00aa74cfe2f89acb87.zip
Add missing column in table 'users'
Diffstat (limited to 'database')
-rw-r--r--database/db.js3
1 files changed, 2 insertions, 1 deletions
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