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

rename database tables #18

Open
gravitystorm opened this issue Mar 31, 2017 · 2 comments
Open

rename database tables #18

gravitystorm opened this issue Mar 31, 2017 · 2 comments

Comments

@gravitystorm
Copy link
Owner

For hysterical raisins many of the database tables don't match the model names. There's nothing to be gained from this, and I keep getting caught out by this (e.g. the relation_members table is not related to the RelationMember model, and the way_nodes table is not related to the WayNode model).

It would be good to rename them. Doing so here is easy, but I assume that the difficulty is in coordinating the change with other tools like osmosis and the various dumpers.

@pnorman
Copy link

pnorman commented Mar 9, 2019

It would be good to rename them. Doing so here is easy, but I assume that the difficulty is in coordinating the change with other tools like osmosis and the various dumpers.

A view (create view old_name as select * from new name;) should handle everything except planet-dump-ng. That might need more changes because it works on the dump file.

@gravitystorm
Copy link
Owner Author

Good point, I hadn't thought of using views.

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