HomeSoftware Heritage

storage.db: Drop db.origin_visit_upsert behavior

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

storage.db: Drop db.origin_visit_upsert behavior

The initial desired behavior was to allow creation of origin-visit if they
already had their id set. This is the what's needed for the replayer to actually
work.

But somehow, this left the possibility to update the origin-visit...
This commit fixes it by dropping conflictual origin-visits if any.
In effect, we can no longer overwrite origin-visits (pg-storage wise).

Related to T2310

Details

Provenance
ardumontAuthored on Jul 3 2020, 4:31 PM
ardumontPushed on Jul 3 2020, 4:49 PM
Differential Revision
D3416: storage.db: Drop db.origin_visit_upsert behavior
Tasks
T2310: Make origin visits immutable
Build Status
Buildable 13334
Build 20374: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.