fix handling of indices with multiple columns (mysql)

This commit is contained in:
Marcus Efraimsson committed 2018-12-18 22:28:27 +01:00
1 parent 09b3014683
commit a451c20129
1 file changed
+1 -1
+1 -1
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{}