bbgo_origin/migrations/20201105093056_orders_add_index.sql
2021-01-15 10:31:37 +08:00

8 lines
216 B
SQL

-- +up
CREATE INDEX orders_symbol ON orders (exchange, symbol);
CREATE UNIQUE INDEX orders_order_id ON orders (order_id, exchange);
-- +down
DROP INDEX orders_symbol ON orders;
DROP INDEX orders_order_id ON orders;