clean up migrations

This commit is contained in:
Josh Harvey 2017-05-07 18:34:46 +03:00
parent 236070668a
commit 279c296aee
8 changed files with 25 additions and 103 deletions

View file

@ -3,10 +3,10 @@
var db = require('./db')
exports.up = function (next) {
db.query('CREATE TABLE IF NOT EXISTS machine_configs ( ' +
db.multi(['CREATE TABLE IF NOT EXISTS machine_configs ( ' +
'id serial PRIMARY KEY, ' +
'device_fingerprint text NOT NULL, ' +
'data json NOT NULL )', next)
'data json NOT NULL )'], next)
}
exports.down = function (next) {