fix sql syntax

This commit is contained in:
c9s 2021-01-18 16:56:01 +08:00
parent ad78f81b10
commit 463a9bf1b7

View File

@ -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