Skip to content

Commit

Permalink
[ignore] Conditional fix for migration attribute mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
akinross authored and lhercot committed Sep 10, 2024
1 parent f95173e commit 8fa86f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2199,7 +2199,7 @@ func (m *Model) GetOverwriteAttributeMigration(definitions Definitions, attribut
for classNameDefinition, classValues := range value.(map[interface{}]interface{}) {
if classNameDefinition.(string) == className {
for migrationKey, migrationValue := range classValues.(map[interface{}]interface{}) {
if strings.Contains(migrationKey.(string), attributeName) {
if migrationKey.(string) == attributeName {
return ReplacementAttribute{AttributeName: migrationValue.(string), ClassName: className}
}
}
Expand Down

0 comments on commit 8fa86f4

Please sign in to comment.