fix handling of indices with multiple columns (mysql)

This commit is contained in:
Marcus Efraimsson
2018-12-18 22:28:27 +01:00
parent 09b3014683
commit a451c20129

View File

@@ -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{}