It upgrades the state if needed
go-ipfs can automatically migrate the repo if necessart after a software upgrade, but it needs to the `--migrate` option flag to do so.