support for Coin ATM Radar
This commit is contained in:
parent
2cdc8b0d13
commit
6c3099921f
13 changed files with 262 additions and 8 deletions
13
migrations/1526038623129-add_device_location.js
Normal file
13
migrations/1526038623129-add_device_location.js
Normal 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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue