#11859 closed enhancement (fixed)
Add get_database_version and set_database_version methods to DatabaseManager class — at Version 3
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.1.3 |
Component: | database backend | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: |
The database version for Trac and plugins can be retrieved using the |
||
Internal Changes: |
Description
As an incremental step towards the changes outlined in #8172, I propose to add get_database_version
and set_database_version
methods to the DatabaseManager
class.
I implemented these changes as part of another ticket and ended up not needing them, so it seemed worthwhile to commit the changes as a refactoring and database API enhancement.
Change History (3)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Status: | new → assigned |
---|
comment:3 by , 9 years ago
API Changes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Tests pass with SQLite, MySQL and PostgreSQL. Added docstrings.
Committed to trunk in [13455]. Documented in TracDev/ApiChanges/1.1.3@14.
I haven't tested the changes yet with MySQL and PostgreSQL. Docstrings need to be added as well.