Merge pull request #1683 from RafaelTaranto/feat/save-last-auth-attempt-customer
LAM-1108 feat: save last auth attempt per customer
This commit is contained in:
commit
35d38e0dee
5 changed files with 34 additions and 8 deletions
13
migrations/1716969535424-customer-last-auth-attempt.js
Normal file
13
migrations/1716969535424-customer-last-auth-attempt.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
const db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
let sql = [
|
||||
'ALTER TABLE customers ADD COLUMN last_auth_attempt timestamptz'
|
||||
]
|
||||
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue