Просмотр исходного кода

fix handling of indices with multiple columns (mysql)

Marcus Efraimsson 7 лет назад
Родитель
Сommit
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{}