WIP
This commit is contained in:
parent
95fa296190
commit
cd1e9bdb66
4 changed files with 57 additions and 10 deletions
13
migrations/007-add-phone.js
Normal file
13
migrations/007-add-phone.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue