Skip to content

Commit

Permalink
add comment about ambiguous inverts
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitpatel96 committed Nov 7, 2024
1 parent e858e8f commit 25f85da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions processor/schemaprocessor/internal/migrate/attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type AttributeChangeSet struct {
// NewAttributeChangeSet allows for typed strings to be used as part
// of the invocation that will be converted into the default string type.
func NewAttributeChangeSet(mappings ast.AttributeMap) AttributeChangeSet {
// for ambiguous rollbacks (if updates contains entries with multiple keys that have the same value), rollback contains the last key iterated over in mappings
attr := AttributeChangeSet{
updates: make(map[string]string, len(mappings)),
rollback: make(map[string]string, len(mappings)),
Expand Down

0 comments on commit 25f85da

Please sign in to comment.