Fix check pings query

This commit is contained in:
Rafael Taranto 2019-05-13 23:41:21 -03:00 committed by Josh Harvey
parent 1a467707e8
commit 15c8e0d862
3 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,13 @@
const db = require('./db')
exports.up = function (next) {
var sql = [
'ALTER TABLE machine_pings RENAME COLUMN created to updated'
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}