add ca download route
This commit is contained in:
parent
20e10779a7
commit
ff162775a1
3 changed files with 44 additions and 5 deletions
17
migrations/015-paired_devices.js
Normal file
17
migrations/015-paired_devices.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
var db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
var sql = [
|
||||
'alter table devices drop authorized',
|
||||
'alter table devices drop unpair',
|
||||
`create table paired_devices (
|
||||
device_id text PRIMARY KEY,
|
||||
created timestamptz NOT NULL default now()
|
||||
)`
|
||||
]
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue