datarttu / sujuikoDB

Database backend for transit network & observation data.
MIT License
1 stars 1 forks source link

Fix `route_version` validity time exclusion constraint #103

Closed datarttu closed 3 years ago

datarttu commented 3 years ago

Instead of route_ver_id, the exclusion constraint should use route and dir along with valid_during. We want that only one route & dir combo is valid at a time, and this is not guaranteed with the pkey whose value can be virtually arbitrary.