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 Oct 16, 2024
1 parent c1a98e6 commit f51e1cf
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 f51e1cf

Please sign in to comment.