HomeSoftware Heritage

Improve DB schema naming

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

Description

Improve DB schema naming

make it more consistent, so we can then simplify the code a bit by
making relation table names composable (i.e. the relation table between
content and revision is now simply content_in_revision, and so on) as
well as column names (e.g. rev->revision and so on).

Also remove the conditional sql execution in db init code (in
swh/provennce/sql/), because it is actually unnecessary: keeping the
location column for the "without-path" flavor does not cost anything.
The only regression is that the location column in entity tables lost
its "not null" constraint, but it's a minor drawback that the gain in
clarity and simplicity of the db initialization code make up.

Details

Provenance
douarddaAuthored on Jun 15 2021, 12:01 PM
douarddaPushed on Jun 16 2021, 9:06 AM
Differential Revision
D5870: Improve DB schema naming
Build Status
Buildable 22047
Build 34290: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.