lamassu-server/migrations/1716561996854-diagnostics.js
2024-05-28 16:42:05 -04:00

15 lines
372 B
JavaScript

const db = require('./db')
exports.up = function (next) {
let sql = [
'alter table devices add column diagnostics_timestamp timestampz',
'alter table devices add column diagnostics_scan_updated_at timestampz',
'alter table devices add column diagnostics_front_updated_at timestampz'
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}