add migration for crypto support
This commit is contained in:
parent
c897275714
commit
c790456a87
2 changed files with 18 additions and 1 deletions
18
migrations/005-addCrypto.js
Normal file
18
migrations/005-addCrypto.js
Normal 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()
|
||||
}
|
||||
1
todo.txt
1
todo.txt
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue