feat: add request data to user_tokens and token filtering
This commit is contained in:
parent
c4e7547c45
commit
791b275cdf
9 changed files with 61 additions and 16 deletions
15
migrations/1603438527057-add-browser-os-info.js
Normal file
15
migrations/1603438527057-add-browser-os-info.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
const db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
var sql = [
|
||||
'ALTER TABLE user_tokens ADD COLUMN browser_version text',
|
||||
'ALTER TABLE user_tokens ADD COLUMN os_version text',
|
||||
'ALTER TABLE user_tokens ADD COLUMN ip_address inet',
|
||||
]
|
||||
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue