foreign key changes for Fares changes #1950
Labels
enhancement
New feature request or improvement on an existing feature
status: Ready
An issue that is ready to be worked on.
Describe the problem
From spec update for Fares
Proposed solution
NEW RULE DETAILS
Describe the new validation rules
If the value for from_network_id does not exist in networks.network_id or routes.network_id) or the value for to_network_id does not exist in (networks.txt or routes.txt):
Trigger Notice
childFieldName,
childFilename,
csvRowNumber,
fieldValue,
parentFieldName,
parentFilename
A foreign key references the primary key of another file. A foreign key violation means that the foreign key referenced from a given row (the child file) cannot be found in the corresponding file (the parent file). The Foreign keys are defined in the specification under "Type" for each file.
If from_stop_id value does not exist in stops.txt or to_stop_id value does not exist in stops.txt:
Trigger Notice
childFieldName,
childFilename,
csvRowNumber,
fieldValue,
parentFieldName,
parentFilename
A foreign key references the primary key of another file. A foreign key violation means that the foreign key referenced from a given row (the child file) cannot be found in the corresponding file (the parent file). The Foreign keys are defined in the specification under "Type" for each file.
Sample GTFS datasets
Severity
ERROR
Additional context
Alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: