migrate: reorder collection ordering (#8613) (#8616)

(cherry picked from commit f33722b423)

Co-authored-by: Sam Kleinman <garen@tychoish.com>
This commit is contained in:
mergify[bot]
2022-05-25 13:26:56 -04:00
committed by GitHub
parent 3784371dd8
commit a22f7bec39

View File

@@ -19,15 +19,16 @@ func MakeKeyMigrateCommand() *cobra.Command {
defer cancel()
contexts := []string{
// this is ordered to put the
// (presumably) biggest/most important
// subsets first.
// this is ordered to put
// the more ephemeral tables first to
// forclose the possiblity of the
// ephemeral data overwriting later data
"tx_index",
"peerstore",
"light",
"blockstore",
"state",
"peerstore",
"tx_index",
"evidence",
"light",
}
for idx, dbctx := range contexts {