WordPress.org

Make WordPress Core

Ticket #4778: enum_to_varchar.diff

File enum_to_varchar.diff, 2.4 KB (added by ryan, 10 years ago)
  • wp-includes/version.php

     
    1616 *
    1717 * @global int $wp_db_version
    1818 */
    19 $wp_db_version = 6730;
     19$wp_db_version = 6731;
    2020
    2121?>
     22 No newline at end of file
  • wp-admin/includes/schema.php

     
    4545  comment_date_gmt datetime NOT NULL default '0000-00-00 00:00:00',
    4646  comment_content text NOT NULL,
    4747  comment_karma int(11) NOT NULL default '0',
    48   comment_approved enum('0','1','spam') NOT NULL default '1',
     48  comment_approved varchar(20) NOT NULL default '1',
    4949  comment_agent varchar(255) NOT NULL default '',
    5050  comment_type varchar(20) NOT NULL default '',
    5151  comment_parent bigint(20) NOT NULL default '0',
     
    6363  link_target varchar(25) NOT NULL default '',
    6464  link_category bigint(20) NOT NULL default '0',
    6565  link_description varchar(255) NOT NULL default '',
    66   link_visible enum('Y','N') NOT NULL default 'Y',
     66  link_visible varchar(20) NOT NULL default 'Y',
    6767  link_owner int(11) NOT NULL default '1',
    6868  link_rating int(11) NOT NULL default '0',
    6969  link_updated datetime NOT NULL default '0000-00-00 00:00:00',
     
    7979  blog_id int(11) NOT NULL default '0',
    8080  option_name varchar(64) NOT NULL default '',
    8181  option_value longtext NOT NULL,
    82   autoload enum('yes','no') NOT NULL default 'yes',
     82  autoload varchar(20) NOT NULL default 'yes',
    8383  PRIMARY KEY  (option_id,blog_id,option_name),
    8484  KEY option_name (option_name)
    8585) $charset_collate;
     
    101101  post_title text NOT NULL,
    102102  post_category int(4) NOT NULL default '0',
    103103  post_excerpt text NOT NULL,
    104   post_status enum('publish','draft','private','static','object','attachment','inherit','future', 'pending') NOT NULL default 'publish',
    105   comment_status enum('open','closed','registered_only') NOT NULL default 'open',
    106   ping_status enum('open','closed') NOT NULL default 'open',
     104  post_status varchar(20) NOT NULL default 'publish',
     105  comment_status varchar(20) NOT NULL default 'open',
     106  ping_status varchar(20) NOT NULL default 'open',
    107107  post_password varchar(20) NOT NULL default '',
    108108  post_name varchar(200) NOT NULL default '',
    109109  to_ping text NOT NULL,