Skip to content

Commit

Permalink
frequencies: add todo about adding a primary key constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Nov 2, 2024
1 parent 4e927b2 commit 41a14f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/frequencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ CREATE TABLE "${opt.schema}".frequencies (
end_time INTERVAL NOT NULL,
headway_secs INT NOT NULL,
exact_times "${opt.schema}".exact_times_v,
-- frequencies' primary key currently is just (trip_id, start_time)
-- see also https://github.com/google/transit/issues/514
-- todo: add primary key?
UNIQUE (
trip_id,
start_time,
Expand Down

0 comments on commit 41a14f0

Please sign in to comment.