add machine_configs migration
This commit is contained in:
parent
c531a4c3fd
commit
95fa296190
1 changed files with 14 additions and 0 deletions
14
migrations/006-add-machine-config.js
Normal file
14
migrations/006-add-machine-config.js
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
'use strict'
|
||||||
|
|
||||||
|
var db = require('./db')
|
||||||
|
|
||||||
|
exports.up = function (next) {
|
||||||
|
db.query('CREATE TABLE IF NOT EXISTS machine_configs ( ' +
|
||||||
|
'id serial PRIMARY KEY, ' +
|
||||||
|
'device_fingerprint text NOT NULL, ' +
|
||||||
|
'data json NOT NULL )', next)
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.down = function (next) {
|
||||||
|
next()
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue