mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
fix sql syntax
This commit is contained in:
parent
ad78f81b10
commit
463a9bf1b7
|
@ -3,7 +3,7 @@
|
|||
ALTER TABLE `trades` DROP INDEX `id`;
|
||||
-- +end
|
||||
-- +begin
|
||||
ALTER TABLE `trades` ADD INDEX UNIQUE `id` ON (`exchange`,`symbol`, `side`, `id`);
|
||||
ALTER TABLE `trades` ADD UNIQUE INDEX `id` (`exchange`,`symbol`, `side`, `id`);
|
||||
-- +end
|
||||
|
||||
-- +down
|
||||
|
@ -11,5 +11,5 @@ ALTER TABLE `trades` ADD INDEX UNIQUE `id` ON (`exchange`,`symbol`, `side`, `id`
|
|||
ALTER TABLE `trades` DROP INDEX `id`;
|
||||
-- +end
|
||||
-- +begin
|
||||
ALTER TABLE `trades` ADD INDEX UNIQUE `id` ON (`id`);
|
||||
ALTER TABLE `trades` ADD UNIQUE INDEX `id` (`id`);
|
||||
-- +end
|
||||
|
|
Loading…
Reference in New Issue
Block a user