diff --git a/index.go b/index.go index 814f9e9..f477b4d 100644 --- a/index.go +++ b/index.go @@ -75,7 +75,7 @@ func (o *IndexDef) changeColumn(originalName, newName string) { } func (o *IndexDef) hasPrefix(columns []string) bool { - if len(o.Columns) < len(columns) { + if len(o.Columns) > len(columns) { return false }