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

nfc: extend table foreign keys to include column names #2293

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

ozym
Copy link
Contributor

@ozym ozym commented Nov 16, 2024

This is aimed at better building sql tables, and includes being more specific about the foreign keys by including column names, and adding any columns that can be set to null, as well as any columns that can't but have a default to avoid this.

There are likely to be some other fields with defaults, but at the moment it is not clear what the value should be, e.g. a blank entry may mean all values. Perhaps some form of expression is needed.

The current implementation is a proof of concept, whereas the next iteration will hopefully aim at a more designed solution.

It also fixes a few misconfigured foreign key tables which had no impact.

@ozym ozym requested review from a team as code owners November 16, 2024 10:36
@ozym ozym self-assigned this Nov 16, 2024
@ozym ozym added the enhancement New feature development work label Nov 16, 2024
This is aimed at better building sql tables, and includes being more
specific about the foreign keys by including column names, and adding
any columns that can be set to null, as well as any columns that can't
but have a default to avoid this.

There are likely to be some other fields with defaults, but at the
moment it is not clear what the value should be, e.g. a blank entry may
mean all values. Perhaps some form of expression is needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature development work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant