v12.0.0 - initial commit
This commit is contained in:
commit
e2c49ea43c
1145 changed files with 97211 additions and 0 deletions
19
packages/server/migrations/006-add-machine-config.js
Normal file
19
packages/server/migrations/006-add-machine-config.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
'use strict'
|
||||
|
||||
var db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
db.runAll(
|
||||
[
|
||||
'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