Truncate/trim server tables

This commit is contained in:
Rafael Taranto 2019-04-24 23:05:39 -03:00 committed by Josh Harvey
parent 4640b4a774
commit 67919892e8
5 changed files with 35 additions and 17 deletions

View file

@ -0,0 +1,13 @@
const db = require('./db')
exports.up = function (next) {
var sql = [
'TRUNCATE TABLE server_events'
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}