[wp-trac] Re: [WordPress Trac] #787: Bad PRIMARY key for the table wp_post2cat

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 21 05:05:45 GMT 2007


#787: Bad PRIMARY key for the table wp_post2cat
--------------------------------------+-------------------------------------
 Reporter:  michel v                  |        Owner:  ketsugi
     Type:  defect                    |       Status:  new    
 Priority:  normal                    |    Milestone:  2.2    
Component:  Optimization              |      Version:  2.1    
 Severity:  normal                    |   Resolution:         
 Keywords:  dev-feedback 2nd-opinion  |  
--------------------------------------+-------------------------------------
Changes (by rob1n):

  * priority:  low => normal
  * keywords:  => dev-feedback 2nd-opinion
  * version:  2.0.4 => 2.1
  * severity:  minor => normal
  * summary:  bad PRIMARY key for the table wp_post2cat => Bad PRIMARY key
              for the table wp_post2cat

Comment:

 Wouldn't setting both post_id and category_id as PRIMARY's force them to
 be unique? Neither will be unique, eventually...

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


More information about the wp-trac mailing list