Edgewall Software

Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#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 get_database_version and set_database_version methods of the DatabaseManager class.

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 Ryan J Ollos, 9 years ago

I haven't tested the changes yet with MySQL and PostgreSQL. Docstrings need to be added as well.

log:rjollos.git:t11859

comment:2 by Ryan J Ollos, 9 years ago

Status: newassigned

comment:3 by Ryan J Ollos, 9 years ago

API Changes: modified (diff)
Resolution: fixed
Status: assignedclosed

Tests pass with SQLite, MySQL and PostgreSQL. Added docstrings.

Committed to trunk in [13455]. Documented in TracDev/ApiChanges/1.1.3@14.

Note: See TracTickets for help on using tickets.