clean up migrations
This commit is contained in:
parent
236070668a
commit
279c296aee
8 changed files with 25 additions and 103 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue