WIP
This commit is contained in:
parent
cd1e9bdb66
commit
3e48e50757
5 changed files with 110 additions and 11 deletions
13
migrations/008-add-two-way.js
Normal file
13
migrations/008-add-two-way.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
var db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
var sql = [
|
||||
'alter table transactions add dispensed boolean NOT NULL DEFAULT false',
|
||||
'alter table transactions add authorized boolean NOT NULL DEFAULT false'
|
||||
]
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue