aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKana <[email protected]>2018-02-22 13:22:57 -0300
committerGitHub <[email protected]>2018-02-22 13:22:57 -0300
commit1a77649ce3ba9d30fa0fa10c9458cc5e2042725b (patch)
treed61de93808e5e38358e96547e4a5a35325741c75
parentIn theory this will enable us to disable users and not break already running ... (diff)
parentAdd missing column in table 'users' (diff)
downloadhost.fuwn.me-1a77649ce3ba9d30fa0fa10c9458cc5e2042725b.tar.xz
host.fuwn.me-1a77649ce3ba9d30fa0fa10c9458cc5e2042725b.zip
Merge pull request #75 from pyraxo/master
Add missing column in table 'users'
-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