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

feat: add support for "enum constraints" #638

Merged
merged 7 commits into from Aug 11, 2020
Merged

feat: add support for "enum constraints" #638

merged 7 commits into from Aug 11, 2020

Conversation

benjie
Copy link
Member

@benjie benjie commented Aug 11, 2020

This builds on #635 to use constraints rather than tables as the source of enums. This allows you to have a single table to store all your enums in, referencing different columns for different enums.

Add 'enum' smart comment to relevant unique or primary key constraint (or, if you add it to the table, we'll treat it as if it was added to the primary key).

@benjie benjie merged commit 4944e63 into v4 Aug 11, 2020
@benjie benjie deleted the enum-constraints branch August 11, 2020 13:54
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

Successfully merging this pull request may close these issues.

None yet

1 participant