diff options
| author | pyra <[email protected]> | 2018-02-23 00:16:02 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-02-23 00:16:02 +0800 |
| commit | b9cad8e4d5ac21730cef4d00aa74cfe2f89acb87 (patch) | |
| tree | d61de93808e5e38358e96547e4a5a35325741c75 /database | |
| parent | In theory this will enable us to disable users and not break already running ... (diff) | |
| download | host.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.js | 3 |
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 |