PCVCT Version
Manage the version of PCVCT in the database.
Public API
Private API
pcvct.createPCVCTVersionTable
— MethodcreatePCVCTVersionTable(is_new_db::Bool)
Creates the pcvctversion table in the database if it does not exist. If isnew_db is true, it inserts the current pcvct version into the table.
pcvct.pcvctDBVersion
— MethodpcvctDBVersion(is_new_db::Bool)
Returns the version of the pcvct database. If the database does not exist, it creates a new one with the current pcvct version.
pcvct.pcvctVersion
— MethodpcvctVersion()
Returns the version of the pcvct package.
pcvct.resolvePCVCTVersion
— MethodresolvePCVCTVersion(is_new_db::Bool, auto_upgrade::Bool)
Resolve differences between the pcvct version and the database version. If the pcvct version is lower than the database version, it returns false (upgrade your version of pcvct to match what was already used for the database). If the pcvct version is equal to the database version, it returns true. If the pcvct version is higher than the database version, it upgrades the database to the current pcvct version and returns true.