Extension:CheckUser/cu changes table

A table for the extension used to store events from the  table and other selected events with the IP and UA string used to make the action. See also.

cuc_id
Primary key, used to uniquely identify a cu_changes row.

cuc_namespace
Similar to. When pages are renamed, this namespace does not change.

cuc_title
Similar to. When pages are renamed, this title does not change.

cuc_user
References a in the user table. Similar to.

cuc_user_text
References either a username with the ID stored in cuc_user in the table or the text representation of the IP address when cuc_user is 0. Similar to.

cuc_actor
Stores the for the user who performed the action that created this row. Similar to.

cuc_actiontext
Stores the output of the text generated by using the database columns or  in language specified in the server configuation. Once set this does not change and is not translated for user-by-user.

cuc_comment
Similar to and.

cuc_comment_id
References a row in the with the  as the value stored in this column. Similar to and.

cuc_minor
See.

cuc_page_id
Key to. Used to keep links working after moves while keeping the title and namespace of this change the same in the changes list. If not applicable (and also by default), the value of this column is 0.

cuc_this_oldid
of the given revision. See also.

cuc_last_oldid
of the prior revision, for generating diff links. See also.

cuc_type
One of RC_EDIT (0), RC_NEW (1) or RC_LOG (3). See.

cuc_timestamp
Timestamp for the event that is stored in the cu_changes table, in the timestamp format MediaWiki uses everywhere in the database: yyyymmddhhmmss.

cuc_ip
The IP address used to make the edit.

cuc_ip_hex
The IP address in as hexadecimal.

cuc_xff
The entire XFF header. If not provided or if all XFF IPs are varnish servers, this will be the empty string.

cuc_xff_hex
If all XFF IPs are not varnish servers, then this contains the best guess of the XFF IP in the XFF header as hexadecimal.

cuc_agent
The User agent header provided in the request that made the action being stored in this row.

cuc_private
Private data that is stored using encryption. Must have a public key defined in the server configuration using. Otherwise is left empty.

cuc_only_for_read_old
Temporary column used for migration of log entries to table and  table.

Schema
mysql> describe cu_changes; +---+-+--+-+-++ +---+-+--+-+-++ +---+-+--+-+-++
 * Field                | Type                | Null | Key | Default | Extra          |
 * cuc_id               | int(10) unsigned    | NO   | PRI | NULL    | auto_increment |
 * cuc_namespace        | int(11)             | NO   |     | 0       |                |
 * cuc_title            | varbinary(255)      | NO   |     |         |                |
 * cuc_actor            | bigint(20) unsigned | NO   | MUL | 0       |                |
 * cuc_actiontext       | varbinary(255)      | NO   |     |         |                |
 * cuc_comment_id       | bigint(20) unsigned | NO   |     | 0       |                |
 * cuc_minor            | tinyint(1)          | NO   |     | 0       |                |
 * cuc_page_id          | int(10) unsigned    | NO   |     | 0       |                |
 * cuc_this_oldid       | int(10) unsigned    | NO   |     | 0       |                |
 * cuc_last_oldid       | int(10) unsigned    | NO   |     | 0       |                |
 * cuc_type             | tinyint(3) unsigned | NO   |     | 0       |                |
 * cuc_timestamp        | binary(14)          | NO   | MUL | NULL    |                |
 * cuc_ip               | varbinary(255)      | YES  |     |         |                |
 * cuc_ip_hex           | varbinary(255)      | YES  | MUL | NULL    |                |
 * cuc_xff              | varbinary(255)      | YES  |     |         |                |
 * cuc_xff_hex          | varbinary(255)      | YES  | MUL | NULL    |                |
 * cuc_agent            | varbinary(255)      | YES  |     | NULL    |                |
 * cuc_private          | mediumblob          | YES  |     | NULL    |                |
 * cuc_only_for_read_old | tinyint(1)         | NO   |     | 0       |                |