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

Support unique NULLS NOT DISTINCT in console #9279

Open
deathemperor opened this issue Dec 8, 2022 · 0 comments
Open

Support unique NULLS NOT DISTINCT in console #9279

deathemperor opened this issue Dec 8, 2022 · 0 comments
Labels
k/enhancement New feature or improve an existing feature t/native-dbs

Comments

@deathemperor
Copy link
Contributor

Is your proposal related to a problem?

Use soft delete with deleted_at, then create an unique constraints with deleted_at as one of the columns: when deleted_at = null (not deleted yet), it loses the unique constraint

Describe the solution you'd like

add an option to set unique NULLS NOT DISTINCT

Describe alternatives you've considered

N/A

@deathemperor deathemperor added the k/enhancement New feature or improve an existing feature label Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/enhancement New feature or improve an existing feature t/native-dbs
Projects
None yet
Development

No branches or pull requests

2 participants