From 5b6dbbd750d03c031997293719c393170517411a Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Tue, 3 Aug 2021 00:23:21 -0600 Subject: [PATCH] Changed order of buy_tag in migrations --- freqtrade/persistence/migrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/persistence/migrations.py b/freqtrade/persistence/migrations.py index 22d0b56b7..b4ddfc8d8 100644 --- a/freqtrade/persistence/migrations.py +++ b/freqtrade/persistence/migrations.py @@ -47,6 +47,7 @@ def migrate_trades_table(decl_base, inspector, engine, table_back_name: str, col min_rate = get_column_def(cols, 'min_rate', 'null') sell_reason = get_column_def(cols, 'sell_reason', 'null') strategy = get_column_def(cols, 'strategy', 'null') + buy_tag = get_column_def(cols, 'buy_tag', 'null') leverage = get_column_def(cols, 'leverage', '1.0') interest_rate = get_column_def(cols, 'interest_rate', '0.0') @@ -54,7 +55,6 @@ def migrate_trades_table(decl_base, inspector, engine, table_back_name: str, col # 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') - buy_tag = get_column_def(cols, 'buy_tag', 'null') # If ticker-interval existed use that, else null. if has_column(cols, 'ticker_interval'): timeframe = get_column_def(cols, 'timeframe', 'ticker_interval')