These instructions explain how to rename a tag in LM and link the historical data from the old tag, to the new one. They assume that the new tag has not been created.
If the new TAG has been created please see the related instructions: Update data of an old TAG to a new TAG in LM's database
Note: Be sure to have the shell enabled with the right project vovproject enable <name>.
vovsql_query -rw -x "insert into tags (name) values ('MyNewTag')"
vovsql_query -e "select id from tags where name='MyNewTag'"
Let's say this returns 20.
vovsql_query -e "select id from tags where name='MyOldTag'"
Let's say this returns 19.
vovsql_query -e "select id,name from features where tag_id=19"
Let's say you get something like:
vovsql_query -rw -x "update features set tag_id=20 where id in (112,113)"
Now, update the summary tables:
% ftlm_summary -full -tag MyOldTag
% ftlm_summary -full -tag MyNewTag
When the commands finish, the old tag name can be renamed.