diff --git a/migrations/006-add-machine-config.js b/migrations/006-add-machine-config.js new file mode 100644 index 00000000..5f036250 --- /dev/null +++ b/migrations/006-add-machine-config.js @@ -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() +}