add migration for crypto support

This commit is contained in:
Josh Harvey 2016-04-11 17:09:35 +02:00
parent c897275714
commit c790456a87
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,18 @@
var db = require('./db')
exports.up = function (next) {
var sqls = [
'alter table transactions alter satoshis TYPE bigint',
"alter table transactions add crypto_code text default 'BTC'",
"alter table pending_transactions add crypto_code text default 'BTC'",
'alter table pending_transactions alter satoshis TYPE bigint',
"alter table bills add crypto_code text default 'BTC'",
'alter table bills alter satoshis TYPE bigint'
]
db.multi(sqls, next)
}
exports.down = function (next) {
next()
}

View file

@ -31,7 +31,6 @@ alter table bills add crypto_code text default 'BTC';
alter table bills alter satoshis TYPE bigint;
- handle geth send failure better
- unlock geth account
- remove debug
- implement coin selection screen
- ask neal to work on config scripts