remove ContentIndentifiersCidRemoteIndex uniqueness constraint
authorJoey Hess <joeyh@joeyh.name>
Wed, 23 Dec 2020 17:58:01 +0000 (13:58 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 23 Dec 2020 18:03:33 +0000 (14:03 -0400)
commitc6e693b25de49d4d3b2fedb49ffb42f04f5fd544
tree46690c74d4dc1ef505f1d1fa097fa9696902168c
parentb370e6b0ade431ef9ea59112319cf157ab453591
remove ContentIndentifiersCidRemoteIndex uniqueness constraint

For reasons explained in the bug report.

Implemented using a persistent migration, which works fine. It may add a
little startup overhead when a remote is enabled that uses this, but
probably un-noticable.

On the next major version, it would be fine to delete this database,
and regenerate it from the git-annex branch information. Then this
change could be reverted.

Did nothing about adding back the data that got dropped from the db
due to the bug. Only the borg special remote was probably affected,
and it's not been released yet. rm -rf .git/annex/cidsdb does work.
Database/ContentIdentifier.hs
doc/bugs/borg_uses_non_unique_contentidentifier_which_gets_lost.mdwn