bbgo_origin/migrations/mysql/20240918132534_add_position_index.sql

11 lines
166 B
SQL

-- +up
-- +begin
CREATE INDEX positions_traded_at ON positions (traded_at, profit);
-- +end
-- +down
-- +begin
DROP INDEX positions_traded_at ON positions;
-- +end