add ca download route

This commit is contained in:
Josh Harvey 2016-10-21 23:56:58 +03:00
parent 20e10779a7
commit ff162775a1
3 changed files with 44 additions and 5 deletions

View 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()
}