Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agency_id is required #2

Open
flibbertigibbet opened this issue Sep 11, 2014 · 2 comments
Open

agency_id is required #2

flibbertigibbet opened this issue Sep 11, 2014 · 2 comments

Comments

@flibbertigibbet
Copy link

If optional GTFS field agency_id is missing, receive error:

ERROR: null value in column "agency_id" violates not-null constraint

Can reproduce with Chicago GTFS.

@echeipesh
Copy link
Contributor

Yes, as you say that field is optional for GTFS systems that only apply to a single agency. That implies the field is nullable. Would it present a problem to have the schema reflect that ?

@flibbertigibbet
Copy link
Author

I don't think we're using the agency_id field at all at this point, so no. It may be easier to just assign some default value there; it doesn't matter what it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants