Skip to content

How to create Postgres index with "NULLS NOT DISTINCT"? #6085

@armoona

Description

@armoona

How would I create a Postgresql index with NULLS NOT DISTINCT option in gorm?

Tried it with gorm:"index:,option:NULLS NOT DISTINCT", but it didn't work.

See this if you need more context:
https://stackoverflow.com/questions/8289100/create-unique-constraint-with-null-columns

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions