Skip to content

Commit

Permalink
use EqualFold to compare case insensitively (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
moredure authored Apr 3, 2022
1 parent dc3ea2a commit 8d60c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (m Migrator) CreateIndex(value interface{}, name string) error {
}
createIndexSQL += "INDEX "

if strings.TrimSpace(strings.ToUpper(idx.Option)) == "CONCURRENTLY" {
if strings.EqualFold(strings.TrimSpace(idx.Option), "CONCURRENTLY") {
createIndexSQL += "CONCURRENTLY "
}

Expand Down

0 comments on commit 8d60c48

Please sign in to comment.