support for Coin ATM Radar

This commit is contained in:
Josh Harvey 2018-05-11 17:41:42 +03:00
parent 2cdc8b0d13
commit 6c3099921f
13 changed files with 262 additions and 8 deletions

View file

@ -0,0 +1,13 @@
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.multi(sql, next)
}
exports.down = function (next) {
next()
}