bbgo_origin/migrations/sqlite3/20201105093056_orders_add_index.sql

8 lines
216 B
MySQL
Raw Permalink Normal View History

2021-02-05 06:15:28 +00:00
-- +up
CREATE INDEX orders_symbol ON orders (exchange, symbol);
CREATE UNIQUE INDEX orders_order_id ON orders (order_id, exchange);
-- +down
DROP INDEX IF EXISTS orders_symbol;
DROP INDEX IF EXISTS orders_order_id;