add serials to machine logging

This commit is contained in:
Josh Harvey 2018-01-03 13:01:02 +00:00
parent 547e9c08b6
commit beb2a2136d
2 changed files with 18 additions and 7 deletions

View file

@ -0,0 +1,10 @@
const db = require('./db')
exports.up = function (next) {
const sql = ['alter table logs add column serial integer not null default 0']
db.multi(sql, next)
}
exports.down = function (next) {
next()
}