-
-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A trade may be missed initially and fetched after it has occurred.
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- +up | ||
-- +begin | ||
ALTER TABLE `trades` ADD COLUMN `inserted_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL; | ||
|
||
-- +end | ||
|
||
-- +down | ||
|
||
-- +begin | ||
ALTER TABLE `trades` DROP COLUMN `inserted_at`; | ||
-- +end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- +up | ||
-- +begin | ||
ALTER TABLE trades ADD COLUMN inserted_at DATETIME DEFAULT (datetime('now')) NOT NULL; | ||
-- +end | ||
|
||
-- +down | ||
|
||
-- +begin | ||
ALTER TABLE trades DROP COLUMN inserted_at; | ||
-- +end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters