lamassu-server/migrations/007-add-phone.js
Josh Harvey cd1e9bdb66 WIP
2016-05-04 18:34:12 +01:00

13 lines
234 B
JavaScript

var db = require('./db')
exports.up = function (next) {
var sql = [
'alter table transactions add phone text',
'create index on transactions (phone)'
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}