Skip to content

Commit

Permalink
Merge pull request #184 from CityofToronto/record-time-of-cache
Browse files Browse the repository at this point in the history
Add field to hold timestamp of cached result
  • Loading branch information
Nate-Wessel authored Jan 15, 2025
2 parents df5f031 + c0433e0 commit fd2ad68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/tables/travel_time_cache.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ CREATE TABLE nwessel.cached_travel_times (
uri_string text CHECK(uri_string ~ '^\/\d+\/\d+\/\d{1,2}\/\d{1,2}\/\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}\/(true|false)\/[1-7]{1,7}$'),
commit_hash text,
results jsonb NOT NULL,
first_requested timestamptz DEFAULT NOW(),
PRIMARY KEY (uri_string, commit_hash)
);

Expand Down

0 comments on commit fd2ad68

Please sign in to comment.