Skip to content

Commit

Permalink
fix: skip index recreation
Browse files Browse the repository at this point in the history
  • Loading branch information
toopay committed Oct 24, 2024
1 parent c9f3591 commit 14155f8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/resource/tables/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ func compareRelations(table *objects.Table, source, target []objects.TablesRelat
continue
}

if t.Index == nil && sc.Index == nil {
updateItems = append(updateItems, objects.UpdateRelationItem{
Data: sc,
Type: objects.UpdateRelationCreateIndex,
})
Logger.Debug("create new index", "constrain-name", sc.ConstraintName)
}
// if t.Index == nil && sc.Index == nil {
// updateItems = append(updateItems, objects.UpdateRelationItem{
// Data: sc,
// Type: objects.UpdateRelationCreateIndex,
// })
// Logger.Debug("create new index", "constrain-name", sc.ConstraintName)
// }

if t.Action != nil && sc.Action != nil {
if t.Action.UpdateAction != sc.Action.UpdateAction {
Expand Down

0 comments on commit 14155f8

Please sign in to comment.