WordPress.org

Make WordPress Core

Ticket #9435: 9435-text-fields-alt.diff

File 9435-text-fields-alt.diff, 2.8 KB (added by Denis-de-Bernardy, 5 years ago)

the same patch, keeping comment_author and post_title as text fields in case this was needed for any reason

  • Users/denis/Sites/wp/wp-admin/includes/schema.php

     
    4040 term_taxonomy_id bigint(20) unsigned NOT NULL auto_increment, 
    4141 term_id bigint(20) unsigned NOT NULL default 0, 
    4242 taxonomy varchar(32) NOT NULL default '', 
    43  description longtext NOT NULL, 
     43 description text NOT NULL, 
    4444 parent bigint(20) unsigned NOT NULL default 0, 
    4545 count bigint(20) NOT NULL default 0, 
    4646 PRIMARY KEY  (term_taxonomy_id), 
     
    8989  link_rating int(11) NOT NULL default '0', 
    9090  link_updated datetime NOT NULL default '0000-00-00 00:00:00', 
    9191  link_rel varchar(255) NOT NULL default '', 
    92   link_notes mediumtext NOT NULL, 
     92  link_notes text NOT NULL, 
    9393  link_rss varchar(255) NOT NULL default '', 
    9494  PRIMARY KEY  (link_id), 
    9595  KEY link_category (link_category), 
     
    9999  option_id bigint(20) unsigned NOT NULL auto_increment, 
    100100  blog_id int(11) NOT NULL default '0', 
    101101  option_name varchar(64) NOT NULL default '', 
    102   option_value longtext NOT NULL, 
     102  option_value mediumtext NOT NULL, 
    103103  autoload varchar(20) NOT NULL default 'yes', 
    104104  PRIMARY KEY  (option_id,blog_id,option_name), 
    105105  KEY option_name (option_name) 
     
    108108  meta_id bigint(20) unsigned NOT NULL auto_increment, 
    109109  post_id bigint(20) unsigned NOT NULL default '0', 
    110110  meta_key varchar(255) default NULL, 
    111   meta_value longtext, 
     111  meta_value mediumtext, 
    112112  PRIMARY KEY  (meta_id), 
    113113  KEY post_id (post_id), 
    114114  KEY meta_key (meta_key) 
     
    118118  post_author bigint(20) unsigned NOT NULL default '0', 
    119119  post_date datetime NOT NULL default '0000-00-00 00:00:00', 
    120120  post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00', 
    121   post_content longtext NOT NULL, 
    122   post_title text NOT NULL, 
     121  post_content mediumtext NOT NULL, 
     122  post_title tinytext NOT NULL, 
    123123  post_category int(4) NOT NULL default '0', 
    124124  post_excerpt text NOT NULL, 
    125125  post_status varchar(20) NOT NULL default 'publish', 
     
    131131  pinged text NOT NULL, 
    132132  post_modified datetime NOT NULL default '0000-00-00 00:00:00', 
    133133  post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00', 
    134   post_content_filtered text NOT NULL, 
     134  post_content_filtered mediumtext NOT NULL, 
    135135  post_parent bigint(20) unsigned NOT NULL default '0', 
    136136  guid varchar(255) NOT NULL default '', 
    137137  menu_order int(11) NOT NULL default '0', 
     
    162162  umeta_id bigint(20) unsigned NOT NULL auto_increment, 
    163163  user_id bigint(20) unsigned NOT NULL default '0', 
    164164  meta_key varchar(255) default NULL, 
    165   meta_value longtext, 
     165  meta_value mediumtext, 
    166166  PRIMARY KEY  (umeta_id), 
    167167  KEY user_id (user_id), 
    168168  KEY meta_key (meta_key)