Edgewall Software

Changes between Version 23 and Version 24 of TracTicketsCustomFields


Ignore:
Timestamp:
Apr 7, 2008, 1:37:39 PM (16 years ago)
Author:
mbucas@…
Comment:

Details on updating ticket_custom when adding a new custom field

Legend:

Unmodified
Added
Removed
Modified
  • TracTicketsCustomFields

    v23 v24  
    125125}}}
    126126
     127If you added multiple custom fields at different points in time, you should be more specific in the subquery on table {{{ticket}}} by adding the exact custom field name to the query:
     128
     129{{{
     130#!sql
     131INSERT INTO ticket_custom
     132   (ticket, name, value)
     133   SELECT
     134      id AS ticket,
     135      'request_source' AS name,
     136      'None' AS value
     137   FROM ticket
     138   WHERE id NOT IN (
     139      SELECT ticket FROM ticket_custom WHERE name = 'request_source'
     140   );
     141}}}
     142
    127143----
    128144See also: TracTickets, TracIni