[Codestriker-user] Updating the set of comment state metrics
Brought to you by:
sits
|
From: Vysotsky, V. <vvy...@av...> - 2006-06-09 02:27:56
|
After using Codesrtiker for a while, I've decided to edit codestriker.conf and add one new entry in $comment_state_metrics. The UI picked the change right away, but wouldn't let me change the value of the new new metric for any comment. The Topic Information page showed zeroes for all categories of the new metric. =20 Running install.pl didn't help. After some poking around in the the code I was able to fix the problem by running the following statement in MySQL: =20 insert into commentstatemetric select distinct id, <new metric name>, <new metric default value> from commentstatemetric; =20 Is there a better way to update the set of comment state metrics once the database has been initialized? (I'm using 1.9.1) Would it make sense to put this logic in install.pl? =20 -- Vlad =20 |