feat: camera diagnostics (#1681)
This commit is contained in:
parent
5ae9b76c3b
commit
e1c2cc8619
13 changed files with 395 additions and 3 deletions
15
migrations/1716561996854-diagnostics.js
Normal file
15
migrations/1716561996854-diagnostics.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue