Skip to content

Commit

Permalink
Update migrator.go (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
notofir authored Feb 20, 2022
1 parent b5865f9 commit fe6a28c
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 @@ -71,7 +71,7 @@ func (m Migrator) CreateIndex(value interface{}, name string) error {
createIndexSQL += "CONCURRENTLY "
}

createIndexSQL += "? ON ?"
createIndexSQL += "IF NOT EXISTS ? ON ?"

if idx.Type != "" {
createIndexSQL += " USING " + idx.Type + "(?)"
Expand Down

0 comments on commit fe6a28c

Please sign in to comment.