HomeSoftware Heritage

Update for swh.core 2.0.0

Description

Update for swh.core 2.0.0

  • Add expected entry points for swh.core 2 db handling new features:
    • add a `swh.storge.get_datastore()` function
    • add `swh.storage.postgreql.storage.Storage.get_current_version()` method
    • move sql migration scripts in `swh/storage/sql/upgrades`
    • modify sql initialization scripts to match swh.core 2 (remove dbversion management code).
  • Update tests to use the new template-based database handling; this should have only minimal impact on test execution performances.

Details

Provenance
douarddaAuthored on Feb 2 2022, 3:56 PM
douarddaPushed on Feb 24 2022, 11:14 AM
Differential Revision
D7160: Update storage for swh.core 2.0.0
Parents
rDSTO386fb4d61f19: Add types-toml to requirements-test.txt
Branches
Unknown
Tags
Unknown
References
tag: v1.0.0
Tasks
T3894: Add a 'swh db upgrade' cli
Build Status
Buildable 27111
Build 42399: test-and-buildJenkins console ยท Jenkins