Maintain list of static data as key-value pairs
This plugin can be used to manage constants (key/value pairs) stored in the database, which can then be used in report queries. It adds a new administration control panel from which the key/value pairs can be maintained.
If you have any issues, create a new ticket.
0 / 1
Download the zipped source from here.
General instructions on installing Trac plugins can be found on the TracPlugins page.
When the plugin is installed, add a table like this to the database:
CREATE TABLE `constants` ( `constant` VARCHAR(255) NOT NULL, `stringval` VARCHAR(255) DEFAULT NULL, `intval` INT(11) DEFAULT NULL, `floatval` FLOAT DEFAULT NULL, PRIMARY KEY (`constant`) );
You can then use this in report queries. The stringval column will always be stored. Also, intval and floatval will contain the int/float equivalent if possible, ie the input could be cast to an INT.
Visit the administration panel to update constants.