From 10fc2c67c7066b0c5359e3b5e40bdaa2a7c0c5b6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 23 Jul 2018 09:10:37 +0100 Subject: [PATCH] Fix bug causing a database-migration to fail from aspecific state --- freqtrade/persistence.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freqtrade/persistence.py b/freqtrade/persistence.py index 0e0b22e82..5baa5834d 100644 --- a/freqtrade/persistence.py +++ b/freqtrade/persistence.py @@ -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,