Ticket #7200 (closed enhancement: wontfix)
automatic custom-field-initialisation for old tickets
| Reported by: | michael.th@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | ticket system | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
After definition of a new custom field old tickets should get automatically initialised with the default value, assumed one was provided upon creation. Although there is a SQL script provided at TracTicketsCustomFields#Updatingthedatabase I believe this functionality should be built-in.
Currently old tickets have no value for a new custom field, which makes it hard to build queries based on this custom field. To make matters worse, the patch from #879 somehow got lost in the course of time (using reports it is possible, though, but these are deprecated).
As Trac needs to parse its ini-file regularly anyway, why not include a listener that updates the ticket_custom-table accordingly whenever there is a new custom field?


