git-annex/Database
Joey Hess 6babb2c73f
remove wrong uniqueness constraint from ContentIdentifier db
Fix bug that caused importing from a special remote to repeatedly download
unchanged files when multiple files in the remote have the same content.

Unfortunately, there's really no good way to remove a uniqueness constraint
from a sqlite database. The best that can be done is to make a new table
and copy the data over. But that would require using persistent's
migrations or raw sql, and I don't want to do either.

Instead, a sledgehammer approach: Renamed .git/annex/cid to
.git/annex/cids. When the new database doesn't exist, it will be populated
from the git-annex branch.

Noting deletes the old database. Don't want to delete it out from under
some long-running git-annex process that might be using it. It could
eventually be deleted. But this is such a new feature, probably few repos
have the database in any case.
2019-04-09 19:58:24 -04:00
..
Keys update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
ContentIdentifier.hs remove wrong uniqueness constraint from ContentIdentifier db 2019-04-09 19:58:24 -04:00
Export.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Fsck.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Handle.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Init.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Keys.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Queue.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Types.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00