mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
49d567c8f2
A trade may be missed initially and fetched after it has occurred.
15 lines
277 B
SQL
15 lines
277 B
SQL
-- +up
|
|
-- +begin
|
|
ALTER TABLE `trades` ADD COLUMN `inserted_at` DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL AFTER `traded_at`;
|
|
-- +end
|
|
|
|
-- +begin
|
|
UPDATE `trades` SET `inserted_at`=`traded_at`;
|
|
-- +end
|
|
|
|
-- +down
|
|
|
|
-- +begin
|
|
ALTER TABLE `trades` DROP COLUMN `inserted_at`;
|
|
-- +end
|