Skip to content
Snippets Groups Projects
Commit c16ff506 authored by David Douard's avatar David Douard
Browse files

Add a check_dbversion() method to the Db class

This method compares the version stored in the database in the `dbversion`
table with the currently declared version.

This current version is declared as a simple `current_version` attribute
on the Db class. **It must be updated jointly in 30-swh-schema.sql** when
modifying the db schema. Note that if this is forgotten, the added test
`test_dbversion` should fail.

Related to T2525.
parent 629d2d10
No related branches found
No related tags found
1 merge request!543Add a check_dbversion() method to the Db class
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment