lamassu-server/migrations/1595295132361-schema-version-on-user-config.js
2020-09-11 14:13:18 +01:00

13 lines
245 B
JavaScript

const db = require('./db')
module.exports.up = function (next) {
var sql = [
'alter table user_config add column schema_version smallint not null DEFAULT 1'
]
db.multi(sql, next)
}
module.exports.down = function (next) {
next()
}