Przeglądaj źródła

fix handling of indices with multiple columns (mysql)

Marcus Efraimsson 7 lat temu
rodzic
commit
a451c20129
1 zmienionych plików z 1 dodań i 1 usunięć
  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{}