2021-01-15 02:31:37 +00:00
|
|
|
-- +up
|
2020-11-05 03:00:51 +00:00
|
|
|
DROP INDEX trades_symbol ON trades;
|
|
|
|
DROP INDEX trades_symbol_fee_currency ON trades;
|
|
|
|
DROP INDEX trades_traded_at_symbol ON trades;
|
|
|
|
|
|
|
|
CREATE INDEX trades_symbol ON trades (exchange, symbol);
|
|
|
|
CREATE INDEX trades_symbol_fee_currency ON trades (exchange, symbol, fee_currency, traded_at);
|
|
|
|
CREATE INDEX trades_traded_at_symbol ON trades (exchange, traded_at, symbol);
|
|
|
|
|
2021-01-15 02:31:37 +00:00
|
|
|
-- +down
|
2020-11-05 03:00:51 +00:00
|
|
|
DROP INDEX trades_symbol ON trades;
|
|
|
|
DROP INDEX trades_symbol_fee_currency ON trades;
|
|
|
|
DROP INDEX trades_traded_at_symbol ON trades;
|
|
|
|
|
|
|
|
CREATE INDEX trades_symbol ON trades (symbol);
|
|
|
|
CREATE INDEX trades_symbol_fee_currency ON trades (symbol, fee_currency, traded_at);
|
|
|
|
CREATE INDEX trades_traded_at_symbol ON trades (traded_at, symbol);
|
|
|
|
|
|
|
|
|