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 adding unique constraints through ALTER TABLE #800

Closed
fulghum opened this issue Oct 2, 2024 · 0 comments
Closed

Support adding unique constraints through ALTER TABLE #800

fulghum opened this issue Oct 2, 2024 · 0 comments

Comments

@fulghum
Copy link
Contributor

fulghum commented Oct 2, 2024

Doltgres supports adding a unique constraint via a primary key, but returns the following error for a non-primary key uniqueness constraint: Only PRIMARY KEY constraints are supported currently

The spot where we're missing logic is:

return nil, fmt.Errorf("Only PRIMARY KEY constraints are supported currently")

Discovered through HarukaMa data dump loading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant