From c62a8fad5e57a9f7f8c6f78193e7d91c9ed45430 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 29 Oct 2011 09:53:55 +0000 Subject: [PATCH] Updated rc_type documentation --- includes/Defines.php | 5 ++--- maintenance/tables.sql | 5 ++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/includes/Defines.php b/includes/Defines.php index 7da6a4bbd7..fc39af5698 100644 --- a/includes/Defines.php +++ b/includes/Defines.php @@ -149,13 +149,12 @@ define( 'MW_DATE_ISO', 'ISO 8601' ); /**@{ * RecentChange type identifiers - * This may be obsolete; log items are now used for moves? */ define( 'RC_EDIT', 0); define( 'RC_NEW', 1); -define( 'RC_MOVE', 2); +define( 'RC_MOVE', 2); // obsolete define( 'RC_LOG', 3); -define( 'RC_MOVE_OVER_REDIRECT', 4); +define( 'RC_MOVE_OVER_REDIRECT', 4); // obsolete /**@}*/ /**@{ diff --git a/maintenance/tables.sql b/maintenance/tables.sql index f42b9a6ae8..5149d31b12 100644 --- a/maintenance/tables.sql +++ b/maintenance/tables.sql @@ -1016,6 +1016,7 @@ CREATE TABLE /*_*/recentchanges ( -- default view. rc_bot tinyint unsigned NOT NULL default 0, + -- Set if this change corresponds to a page creation rc_new tinyint unsigned NOT NULL default 0, -- Key to page_id (was cur_id prior to 1.5). @@ -1029,8 +1030,10 @@ CREATE TABLE /*_*/recentchanges ( -- rev_id of the prior revision, for generating diff links. rc_last_oldid int unsigned NOT NULL default 0, - -- These may no longer be used, with the new move log. + -- The type of change entry (RC_EDIT,RC_NEW,RC_LOG) rc_type tinyint unsigned NOT NULL default 0, + + -- These may no longer be used, with the new move log. rc_moved_to_ns tinyint unsigned NOT NULL default 0, rc_moved_to_title varchar(255) binary NOT NULL default '', -- 2.20.1