Skip to content

Commit

Permalink
fix(restore): append galaxy namespace to type name (#7880)
Browse files Browse the repository at this point in the history
When restoring from backup taken on version <v21.03, we should append the galaxy namespace to the typename.
  • Loading branch information
NamanJain8 committed Jun 3, 2021
1 parent 3868e8f commit 624202e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions worker/restore_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ func (m *mapper) processReqCh(ctx context.Context) error {
if err := update.Unmarshal(kv.Value); err != nil {
return err
}
update.TypeName = x.GalaxyAttr(update.TypeName)
for _, sch := range update.Fields {
sch.Predicate = x.GalaxyAttr(sch.Predicate)
}
Expand Down

0 comments on commit 624202e

Please sign in to comment.