lamassu-server/packages/server/migrations/1526038623129-add_device_location.js
2025-12-31 19:04:13 +01:00

13 lines
304 B
JavaScript

var db = require('./db')
exports.up = function (next) {
var sql = [
'alter table devices add column last_online timestamptz not null default now()',
"alter table devices add column location json not null default '{}'",
]
db.runAll(sql, next)
}
exports.down = function (next) {
next()
}