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.
Showing
- requirements-swh.txt 1 addition, 1 deletionrequirements-swh.txt
- swh/storage/__init__.py 4 additions, 1 deletionswh/storage/__init__.py
- swh/storage/postgresql/storage.py 5 additions, 0 deletionsswh/storage/postgresql/storage.py
- swh/storage/pytest_plugin.py 17 additions, 7 deletionsswh/storage/pytest_plugin.py
- swh/storage/sql/30-schema.sql 1 addition, 16 deletionsswh/storage/sql/30-schema.sql
- swh/storage/sql/upgrades/015.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/015.sql
- swh/storage/sql/upgrades/016.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/016.sql
- swh/storage/sql/upgrades/017.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/017.sql
- swh/storage/sql/upgrades/018.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/018.sql
- swh/storage/sql/upgrades/019.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/019.sql
- swh/storage/sql/upgrades/020.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/020.sql
- swh/storage/sql/upgrades/021.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/021.sql
- swh/storage/sql/upgrades/022.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/022.sql
- swh/storage/sql/upgrades/023.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/023.sql
- swh/storage/sql/upgrades/024.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/024.sql
- swh/storage/sql/upgrades/025.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/025.sql
- swh/storage/sql/upgrades/026.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/026.sql
- swh/storage/sql/upgrades/027.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/027.sql
- swh/storage/sql/upgrades/028.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/028.sql
- swh/storage/sql/upgrades/029.sql 0 additions, 0 deletionsswh/storage/sql/upgrades/029.sql
Loading
Please register or sign in to comment