bbgo_origin/migrations/sqlite3/20240918132534_add_position_index.sql

11 lines
153 B
SQL

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