-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actually drop old cache metrics via timestamp.
- Loading branch information
1 parent
b8c35a6
commit 56a6682
Showing
3 changed files
with
16 additions
and
11 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
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
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,12 @@ | ||
-- Write your migrate up statements here | ||
|
||
CREATE INDEX cache_with_history_metric ON cache_with_history(metric); | ||
CREATE INDEX cache_with_history_time ON cache_with_history(time); | ||
|
||
---- create above / drop below ---- | ||
|
||
-- Write your migrate down statements here. If this migration is irreversible | ||
-- Then delete the separator line above. | ||
|
||
DROP INDEX if exists cache_with_history_metric; | ||
DROP INDEX if exists cache_with_history_time; |