Skip to content

Conversation

black-06
Copy link
Contributor

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

Get right unique index when parsing ddl CREATE UNIQUE INDEX ...
It has a little relationship with go-gorm/gorm#6163.
( In that case, grom shouldn't AlterColumn, but it did because of the wrong unique value.
Fixing 6163 requires additional work.

User Case Description

CREATE UNIQUE INDEX `idx_uq` ON `test-b`(`field`)

paseDDL => field.UniqueValue is true

@jinzhu jinzhu merged commit 07da3b3 into go-gorm:master Apr 11, 2023
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.

2 participants