feat: add request data to user_tokens and token filtering

This commit is contained in:
Sérgio Salgado 2020-10-26 09:57:31 +00:00 committed by Josh Harvey
parent c4e7547c45
commit 791b275cdf
9 changed files with 61 additions and 16 deletions

View 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()
}