-
Notifications
You must be signed in to change notification settings - Fork 0
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
Naming convention for foreign keys #40
Comments
No, fk_* is reserved for attributes referencing another data table via the obj_id, not the value lists. There are other ways to find out whether an attribute has a value list if this is what you need. The structure and naming convention for referencing value lists is like this: |
It is in contradiction with what is written in the TEKSI development guide 👍 https://github.com/teksi/Home/wiki/TEKSI-Developer-Guide#modules-repositories- For value list relations fk_vl_*: CONSTRAINT fkey_vl_access_aid_kind FOREIGN KEY (kind) |
Mmmmh QWAT and QGEP have two different approaches on that subject, indeed. ( There is no mandatory database requirement to prefix / suffix fk_ / _fk / _id But it is still a good practice in usual relationnal database implementations to make it visible somehow. Here we face a huge renaming work if we go for the fk_ way for TWW. And furthermore this is a change of naming from the INTERLIS datamodel. Therefore I would recommend :
|
@ponceta Thanks for your analysis |
All attribut names referencing value lists should be prefixed by "fk_" such as horizontal_positioning ->fk_horizontal_positioning
The text was updated successfully, but these errors were encountered: