Fix check pings query
This commit is contained in:
parent
1a467707e8
commit
15c8e0d862
3 changed files with 15 additions and 2 deletions
13
migrations/1557800959028-machine-pings-rename.js
Normal file
13
migrations/1557800959028-machine-pings-rename.js
Normal 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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue