doltgresql icon indicating copy to clipboard operation
doltgresql copied to clipboard

Support adding unique constraints through `ALTER TABLE`

Open fulghum opened this issue 1 year ago • 0 comments

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: https://github.com/dolthub/doltgresql/blob/a2b63abb73671ada155ae3dc4d18c2d50f83f23a/server/ast/constraint_table_def.go#L63

Discovered through HarukaMa data dump loading.

fulghum avatar Oct 02 '24 21:10 fulghum