mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-24 07:45:15 +00:00
compile and update migration package
This commit is contained in:
parent
b574c25a56
commit
966a3b3c45
|
@ -16,6 +16,10 @@ func up_main_addNetProfitColumn(ctx context.Context, tx rockhopper.SQLExecutor)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
_, err = tx.ExecContext(ctx, "UPDATE positions SET net_profit = profit WHERE net_profit = 0.0;")
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user