Skip to content

Commit

Permalink
fix: Fix panic when converting schema changes to string (#1885)
Browse files Browse the repository at this point in the history


`previous` is never set so shouldn't be stringified
  • Loading branch information
bbernays authored Sep 2, 2024
1 parent 9be63fe commit 8274f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (t TableColumnChange) String() string {
case TableColumnChangeTypeRemoveUniqueConstraint:
return fmt.Sprintf("column: %s, previous: %s", t.ColumnName, t.Previous)
case TableColumnChangeTypeMoveToCQOnly:
return fmt.Sprintf("multi-column: %s, type: %s, previous: %s", t.ColumnName, t.Type, t.Previous)
return fmt.Sprintf("multi-column: %s, type: %s", t.ColumnName, t.Type)
default:
return fmt.Sprintf("column: %s, type: %s, current: %s, previous: %s", t.ColumnName, t.Type, t.Current, t.Previous)
}
Expand Down

0 comments on commit 8274f17

Please sign in to comment.