Skip to content

Commit

Permalink
fix(restore): append galaxy namespace to type name (#7881)
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.

(cherry picked from commit 23a60d6)
  • Loading branch information
NamanJain8 authored and OmarAyo committed Jun 21, 2021
1 parent a77bbe8 commit 6310997
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions worker/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ func loadFromBackup(db *badger.DB, in *loadBackupInput) (uint64, uint64, 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 6310997

Please sign in to comment.