From 9a03cae920fd433c0f80be0f85253cb665972a4d Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 11 Jul 2021 11:08:05 +0200 Subject: [PATCH] Try fix migration tests --- freqtrade/persistence/migrations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/persistence/migrations.py b/freqtrade/persistence/migrations.py index c9fa4259b..77254a9a6 100644 --- a/freqtrade/persistence/migrations.py +++ b/freqtrade/persistence/migrations.py @@ -51,7 +51,8 @@ def migrate_trades_table(decl_base, inspector, engine, table_back_name: str, col leverage = get_column_def(cols, 'leverage', '1.0') interest_rate = get_column_def(cols, 'interest_rate', '0.0') liquidation_price = get_column_def(cols, 'liquidation_price', 'null') - is_short = get_column_def(cols, 'is_short', 'False') + # sqlite does not support literals for booleans + is_short = get_column_def(cols, 'is_short', '0') interest_mode = get_column_def(cols, 'interest_mode', 'null') # If ticker-interval existed use that, else null. if has_column(cols, 'ticker_interval'):