Recent migration from the scrubber which did not comply fully with the documentation [1]
in regards to migration (through `swh db upgrade` cli) started some work to fix it [1].
The migration for the scrubber was fixed but broke some other modules as side-effects.
After further discussion with @douardda regarding the multiple proposed and somewhat
wrong implementations, we've come to an understanding and a proper plan to fix
everything.
- [x] Keep the current core code [2] (swh.core v2.10 with code and doc ok and aligned)
- [ ] D7953: Fix swh.storage's datastore to add the attribute current_version
- [ ] D7954: Fix swh.indexer's storage datastore to add the attribute current version
- [x] Drop unnecessary reverting diff [3] (again core code is actually ok providing ^)
- [x] Drop diff [4] which is irrelevant as it does not fix (I misunderstood the code)
[1] https://docs.softwareheritage.org/devel/swh-core/db.html#implementation-of-a-swh-core-db-datastore
[2] D7914
[3] D7943
[4] D7949