bbgo_origin/migrations/mysql/20201105093056_orders_add_index.sql

8 lines
216 B
MySQL
Raw Normal View History

2021-01-15 02:31:37 +00:00
-- +up
CREATE INDEX orders_symbol ON orders (exchange, symbol);
2020-11-05 04:55:20 +00:00
CREATE UNIQUE INDEX orders_order_id ON orders (order_id, exchange);
2021-01-15 02:31:37 +00:00
-- +down
DROP INDEX orders_symbol ON orders;
2020-11-05 04:55:20 +00:00
DROP INDEX orders_order_id ON orders;