WordPress.org

Make WordPress Core

Ticket #10387: schema.php.patch

File schema.php.patch, 2.6 KB (added by robbiebow, 6 years ago)
  • wp-admin/includes/schema.php

     
    6161  comment_author_email varchar(100) NOT NULL default '', 
    6262  comment_author_url varchar(200) NOT NULL default '', 
    6363  comment_author_IP varchar(100) NOT NULL default '', 
    64   comment_date datetime NOT NULL default '0000-00-00 00:00:00', 
    65   comment_date_gmt datetime NOT NULL default '0000-00-00 00:00:00', 
     64  comment_date datetime NOT NULL default '1970-01-01 00:00:00', 
     65  comment_date_gmt datetime NOT NULL default '1970-01-01 00:00:00', 
    6666  comment_content text NOT NULL, 
    6767  comment_karma int(11) NOT NULL default '0', 
    6868  comment_approved varchar(20) NOT NULL default '1', 
     
    8686  link_visible varchar(20) NOT NULL default 'Y', 
    8787  link_owner bigint(20) unsigned NOT NULL default '1', 
    8888  link_rating int(11) NOT NULL default '0', 
    89   link_updated datetime NOT NULL default '0000-00-00 00:00:00', 
     89  link_updated datetime NOT NULL default '1970-01-01 00:00:00', 
    9090  link_rel varchar(255) NOT NULL default '', 
    9191  link_notes mediumtext NOT NULL, 
    9292  link_rss varchar(255) NOT NULL default '', 
     
    114114CREATE TABLE $wpdb->posts ( 
    115115  ID bigint(20) unsigned NOT NULL auto_increment, 
    116116  post_author bigint(20) unsigned NOT NULL default '0', 
    117   post_date datetime NOT NULL default '0000-00-00 00:00:00', 
    118   post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00', 
     117  post_date datetime NOT NULL default '1970-01-01 00:00:00', 
     118  post_date_gmt datetime NOT NULL default '1970-01-01 00:00:00', 
    119119  post_content longtext NOT NULL, 
    120120  post_title text NOT NULL, 
    121121  post_excerpt text NOT NULL, 
     
    126126  post_name varchar(200) NOT NULL default '', 
    127127  to_ping text NOT NULL, 
    128128  pinged text NOT NULL, 
    129   post_modified datetime NOT NULL default '0000-00-00 00:00:00', 
    130   post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00', 
     129  post_modified datetime NOT NULL default '1970-01-01 00:00:00', 
     130  post_modified_gmt datetime NOT NULL default '1970-01-01 00:00:00', 
    131131  post_content_filtered text NOT NULL, 
    132132  post_parent bigint(20) unsigned NOT NULL default '0', 
    133133  guid varchar(255) NOT NULL default '', 
     
    147147  user_nicename varchar(50) NOT NULL default '', 
    148148  user_email varchar(100) NOT NULL default '', 
    149149  user_url varchar(100) NOT NULL default '', 
    150   user_registered datetime NOT NULL default '0000-00-00 00:00:00', 
     150  user_registered datetime NOT NULL default '1970-01-01 00:00:00', 
    151151  user_activation_key varchar(60) NOT NULL default '', 
    152152  user_status int(11) NOT NULL default '0', 
    153153  display_name varchar(250) NOT NULL default '',