mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
16 lines
296 B
SQL
16 lines
296 B
SQL
-- +up
|
|
-- +begin
|
|
ALTER TABLE `trades` DROP INDEX `id`;
|
|
-- +end
|
|
-- +begin
|
|
ALTER TABLE `trades` ADD UNIQUE INDEX `id` (`exchange`,`symbol`, `side`, `id`);
|
|
-- +end
|
|
|
|
-- +down
|
|
-- +begin
|
|
ALTER TABLE `trades` DROP INDEX `id`;
|
|
-- +end
|
|
-- +begin
|
|
ALTER TABLE `trades` ADD UNIQUE INDEX `id` (`id`);
|
|
-- +end
|