fix handling of indices with multiple columns (mysql)
This commit is contained in:
@@ -8,7 +8,7 @@ type MigrationCondition interface {
|
|||||||
type ExistsMigrationCondition struct{}
|
type ExistsMigrationCondition struct{}
|
||||||
|
|
||||||
func (c *ExistsMigrationCondition) IsFulfilled(results []map[string][]byte) bool {
|
func (c *ExistsMigrationCondition) IsFulfilled(results []map[string][]byte) bool {
|
||||||
return len(results) == 1
|
return len(results) >= 1
|
||||||
}
|
}
|
||||||
|
|
||||||
type NotExistsMigrationCondition struct{}
|
type NotExistsMigrationCondition struct{}
|
||||||
|
|||||||
Reference in New Issue
Block a user