瀏覽代碼

fix handling of indices with multiple columns (mysql)

Marcus Efraimsson 7 年之前
父節點
當前提交
a451c20129
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/services/sqlstore/migrator/conditions.go

+ 1 - 1
pkg/services/sqlstore/migrator/conditions.go

@@ -8,7 +8,7 @@ type MigrationCondition interface {
 type ExistsMigrationCondition struct{}
 
 func (c *ExistsMigrationCondition) IsFulfilled(results []map[string][]byte) bool {
-	return len(results) == 1
+	return len(results) >= 1
 }
 
 type NotExistsMigrationCondition struct{}