On Sat, Aug 2, 2014 at 6:04 AM, Christopher Nelson <
[email protected]> wrote:

> > I want to add new column [ticket_type_id] in ticket table as group id for
> > type.
> > ...
>
> I thought ticket type was an enum already.  If it isn't, I'd add it to
> the enum table rather than restructure a standard table.
>

That is right. The name of the ticket type is stored in the ticket table.
If you want to get the "ordering value", you would do a join of the ticket
and enum tables.
http://trac.edgewall.org/wiki/TracDev/DatabaseSchema/TicketSystem#Tableticket
http://trac.edgewall.org/wiki/TracDev/DatabaseSchema/TicketSystem#Tableenum

Given that the "ticket_type_id" doesn't look like the "ordering value", I
guess you could add another column to the enum table, provided that a
simple TicketCustomField won't work in this case. But how are you going to
inject a form element into the ticket form for setting the value? I guess
you'd have to write a ITemplateStreamFilter to do that.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to