[wp-trac] [WordPress Trac] #37104: increase post_type field length from varchar(20) to varchar(100) (was: post_type varchar(20) should be replaced with varchar(100))

WordPress Trac noreply at wordpress.org
Mon Jan 9 03:59:42 UTC 2017


#37104: increase post_type field length from varchar(20) to varchar(100)
-------------------------------+------------------------------
 Reporter:  ajwah              |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  4.5.2
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by dd32):

 I'll copy a reply from #39507 to here for future discussion:

 > Worth noting that `comment_type` and `post_type` are both `VARCHAR(20)`
 while taxonomy is `VARCHAR(32)`.
 >
 > I'm not sure I see benefit in these fields being longer, they're
 designed as a short unique grouping of objects.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37104#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list