mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Fix bug causing a database-migration to fail from aspecific state
This commit is contained in:
parent
643de58c4d
commit
10fc2c67c7
|
@ -83,6 +83,8 @@ def check_migrate(engine) -> None:
|
|||
|
||||
# Check for latest column
|
||||
if not has_column(cols, 'max_rate'):
|
||||
fee_open = get_column_def(cols, 'fee_open', 'fee')
|
||||
fee_close = get_column_def(cols, 'fee_close', 'fee')
|
||||
open_rate_requested = get_column_def(cols, 'open_rate_requested', 'null')
|
||||
close_rate_requested = get_column_def(cols, 'close_rate_requested', 'null')
|
||||
stop_loss = get_column_def(cols, 'stop_loss', '0.0')
|
||||
|
@ -109,7 +111,7 @@ def check_migrate(engine) -> None:
|
|||
else pair
|
||||
end
|
||||
pair,
|
||||
is_open, fee fee_open, fee fee_close,
|
||||
is_open, {fee_open} fee_open, {fee_close} fee_close,
|
||||
open_rate, {open_rate_requested} open_rate_requested, close_rate,
|
||||
{close_rate_requested} close_rate_requested, close_profit,
|
||||
stake_amount, amount, open_date, close_date, open_order_id,
|
||||
|
|
Loading…
Reference in New Issue
Block a user