[wp-trac] Re: [WordPress Trac] #4189: Taxonomy Schema and API

WordPress Trac wp-trac at lists.automattic.com
Fri May 25 23:48:35 GMT 2007


#4189: Taxonomy Schema and API
-------------------------------------------+--------------------------------
 Reporter:  ryan                           |        Owner:  anonymous
     Type:  defect                         |       Status:  new      
 Priority:  normal                         |    Milestone:  2.3      
Component:  General                        |      Version:  2.2      
 Severity:  normal                         |   Resolution:           
 Keywords:  term taxonomy tags categories  |  
-------------------------------------------+--------------------------------
Comment (by ryan):

 Currently we have a unique key on the slug.  This is causing problems
 during upgrade because a fair number of folks have multiple categories
 that reduce down to the same slug.  Trying to insert them will generate
 duplicate key errors.  Do we remove the unique and make use of term_group
 for grouping terms that have the same slug, do we maintain the unique and
 append an incrementing "-x" to the duplicate slugs to make them unique, or
 do we do both -- make the slugs unique and put them in the same term
 group?  The last option has the benefit of allowing querying a specific
 term by slug, or by querying all related terms by term group.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4189#comment:43>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list