Add missing column in table 'users'

This commit is contained in:
pyra 2018-02-23 00:16:02 +08:00 committed by GitHub
parent 939b5c52f7
commit b9cad8e4d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ let init = function(db){
table.string('username') table.string('username')
table.string('password') table.string('password')
table.string('token') table.string('token')
table.integer('enabled')
table.integer('timestamp') table.integer('timestamp')
}).then(() => { }).then(() => {
db.table('users').where({username: 'root'}).then((user) => { db.table('users').where({username: 'root'}).then((user) => {