Fix bug causing a database-migration to fail from aspecific state
This commit is contained in:
parent
643de58c4d
commit
10fc2c67c7
@ -83,6 +83,8 @@ def check_migrate(engine) -> None:
|
|||||||
|
|
||||||
# Check for latest column
|
# Check for latest column
|
||||||
if not has_column(cols, 'max_rate'):
|
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')
|
open_rate_requested = get_column_def(cols, 'open_rate_requested', 'null')
|
||||||
close_rate_requested = get_column_def(cols, 'close_rate_requested', 'null')
|
close_rate_requested = get_column_def(cols, 'close_rate_requested', 'null')
|
||||||
stop_loss = get_column_def(cols, 'stop_loss', '0.0')
|
stop_loss = get_column_def(cols, 'stop_loss', '0.0')
|
||||||
@ -109,7 +111,7 @@ def check_migrate(engine) -> None:
|
|||||||
else pair
|
else pair
|
||||||
end
|
end
|
||||||
pair,
|
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,
|
open_rate, {open_rate_requested} open_rate_requested, close_rate,
|
||||||
{close_rate_requested} close_rate_requested, close_profit,
|
{close_rate_requested} close_rate_requested, close_profit,
|
||||||
stake_amount, amount, open_date, close_date, open_order_id,
|
stake_amount, amount, open_date, close_date, open_order_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user