lamassu-server/migrations/1509439657189-add_machine_name_to_devices.js
2017-12-13 16:31:07 +02:00

12 lines
204 B
JavaScript

const db = require('./db')
exports.up = function (next) {
const sql = [
'alter table devices add column name text not null'
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}