mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Comments: Use comment instead of an empty string for the comment_type DB field value in comments table.
This is the first step to bring support for custom comment types into WordPress. Add a scheduled upgrade routine to update the type value for existing comments, in batches of 100 at a time. Props imath, aaroncampbell, jeremyfelt, dshanske. Fixes #49236. git-svn-id: https://develop.svn.wordpress.org/trunk@47597 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -111,7 +111,7 @@ CREATE TABLE $wpdb->comments (
|
||||
comment_karma int(11) NOT NULL default '0',
|
||||
comment_approved varchar(20) NOT NULL default '1',
|
||||
comment_agent varchar(255) NOT NULL default '',
|
||||
comment_type varchar(20) NOT NULL default '',
|
||||
comment_type varchar(20) NOT NULL default 'comment',
|
||||
comment_parent bigint(20) unsigned NOT NULL default '0',
|
||||
user_id bigint(20) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (comment_ID),
|
||||
|
||||
Reference in New Issue
Block a user