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

Foreign keys #36

Open
wrabit opened this issue Jun 21, 2020 · 3 comments
Open

Foreign keys #36

wrabit opened this issue Jun 21, 2020 · 3 comments
Assignees

Comments

@wrabit
Copy link

wrabit commented Jun 21, 2020

I was just thinking geonames could be laravel-ized and low and behold... !

I don't need the full database of geonames. For example in a current project i need cities with their countries, administrative areas, continents etc for cities with a population over 10,000.

Is there a reason why there is no foreign keys from geonames table to the admin tables, alternate names, hierarchy (parent and child)?

@wrabit
Copy link
Author

wrabit commented Jun 21, 2020

Great work so far btw!

@michaeldrennen
Copy link
Owner

Thanks!
The really simple answer is, I didn't need them.
I built this for a project of my own, and I didn't need those relations.
I'll take a look at adding them.
Shouldn't be difficult.

@michaeldrennen
Copy link
Owner

When you say "foreign key" are you meaning relationships in the Models, or foreign key constraints at the database level?

@michaeldrennen michaeldrennen self-assigned this Jan 2, 2021
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