Try fix migration tests

This commit is contained in:
Matthias 2021-07-11 11:08:05 +02:00 committed by Sam Germain
parent 0d06d7e108
commit 9a03cae920

View File

@ -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') leverage = get_column_def(cols, 'leverage', '1.0')
interest_rate = get_column_def(cols, 'interest_rate', '0.0') interest_rate = get_column_def(cols, 'interest_rate', '0.0')
liquidation_price = get_column_def(cols, 'liquidation_price', 'null') 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') interest_mode = get_column_def(cols, 'interest_mode', 'null')
# If ticker-interval existed use that, else null. # If ticker-interval existed use that, else null.
if has_column(cols, 'ticker_interval'): if has_column(cols, 'ticker_interval'):