Update migration to use boolean value

closes #6794
This commit is contained in:
Matthias 2022-05-08 17:27:07 +02:00
parent ab91758c7e
commit 3221726d85

View File

@ -99,7 +99,7 @@ def migrate_trades_and_orders_table(
liquidation_price = get_column_def(cols, 'liquidation_price', liquidation_price = get_column_def(cols, 'liquidation_price',
get_column_def(cols, 'isolated_liq', 'null')) get_column_def(cols, 'isolated_liq', 'null'))
# sqlite does not support literals for booleans # sqlite does not support literals for booleans
is_short = get_column_def(cols, 'is_short', '0') is_short = get_column_def(cols, 'is_short', 'false')
# Margin Properties # Margin Properties
interest_rate = get_column_def(cols, 'interest_rate', '0.0') interest_rate = get_column_def(cols, 'interest_rate', '0.0')