This commit is contained in:
goga-m 2017-10-17 21:19:00 +03:00 committed by Josh Harvey
parent d127901992
commit 43f578d311
6 changed files with 803 additions and 4009 deletions

View file

@ -0,0 +1,18 @@
var db = require('./db')
exports.up = function (next) {
const sql =
[`create table logs (
id uuid PRIMARY KEY,
device_id text,
log_level text,
timestamp timestamptz,
message text)`
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}