compile and update migration package

This commit is contained in:
c9s 2024-11-15 18:02:50 +08:00
parent b574c25a56
commit 966a3b3c45
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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
} }