|
@@ -1,7 +1,6 @@
|
|
|
package migrator
|
|
package migrator
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
- "fmt"
|
|
|
|
|
"strings"
|
|
"strings"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -113,7 +112,7 @@ func NewDropIndexMigration(table Table, index *Index) *DropIndexMigration {
|
|
|
|
|
|
|
|
func (m *DropIndexMigration) Sql(dialect Dialect) string {
|
|
func (m *DropIndexMigration) Sql(dialect Dialect) string {
|
|
|
if m.index.Name == "" {
|
|
if m.index.Name == "" {
|
|
|
- m.index.Name = fmt.Sprintf("%s", strings.Join(m.index.Cols, "_"))
|
|
|
|
|
|
|
+ m.index.Name = strings.Join(m.index.Cols, "_")
|
|
|
}
|
|
}
|
|
|
return dialect.DropIndexSql(m.tableName, m.index)
|
|
return dialect.DropIndexSql(m.tableName, m.index)
|
|
|
}
|
|
}
|