-
- Downloads
Add a 'swh db upgrade' command
this new command allows to handle the database migration from the current version to the latest version advertized but the backend datastore. This feature is only working for "new style" swh.core.db based datastores.
Showing
- swh/core/cli/db.py 84 additions, 0 deletionsswh/core/cli/db.py
- swh/core/db/db_utils.py 108 additions, 3 deletionsswh/core/db/db_utils.py
- swh/core/db/sql/35-dbversion.sql 0 additions, 10 deletionsswh/core/db/sql/35-dbversion.sql
- swh/core/db/sql/36-dbmodule.sql 15 additions, 0 deletionsswh/core/db/sql/36-dbmodule.sql
- swh/core/db/tests/conftest.py 3 additions, 1 deletionswh/core/db/tests/conftest.py
- swh/core/db/tests/data/cli_new/upgrades/001.sql 5 additions, 0 deletionsswh/core/db/tests/data/cli_new/upgrades/001.sql
- swh/core/db/tests/data/cli_new/upgrades/002.sql 4 additions, 0 deletionsswh/core/db/tests/data/cli_new/upgrades/002.sql
- swh/core/db/tests/data/cli_new/upgrades/003.sql 4 additions, 0 deletionsswh/core/db/tests/data/cli_new/upgrades/003.sql
- swh/core/db/tests/data/cli_new/upgrades/004.sql 4 additions, 0 deletionsswh/core/db/tests/data/cli_new/upgrades/004.sql
- swh/core/db/tests/data/cli_new/upgrades/005.sql 4 additions, 0 deletionsswh/core/db/tests/data/cli_new/upgrades/005.sql
- swh/core/db/tests/data/cli_new/upgrades/006.sql 7 additions, 0 deletionsswh/core/db/tests/data/cli_new/upgrades/006.sql
- swh/core/db/tests/test_cli.py 101 additions, 3 deletionsswh/core/db/tests/test_cli.py
- swh/core/db/tests/test_db_utils.py 97 additions, 1 deletionswh/core/db/tests/test_db_utils.py
swh/core/db/sql/36-dbmodule.sql
0 → 100644
Please register or sign in to comment