r42661 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42660‎ | r42661 | r42662 >
Date:17:34, 27 October 2008
Author:aaron
Status:old
Tags:
Comment:
Add a table to track status/tag changes
Modified paths:
  • /trunk/extensions/CodeReview/codereview.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/codereview.sql
@@ -170,3 +170,29 @@
171171 key (cc_repo_id,cc_rev_id,cc_sortkey),
172172 key cc_repo_time (cc_repo_id,cc_timestamp)
173173 ) /*$wgDBTableOptions*/;
 174+
 175+--
 176+-- Changes to review metadata for a single code revision.
 177+--
 178+CREATE TABLE /*$wgDBprefix*/code_prop_changes (
 179+ -- Repository ID
 180+ cpc_repo_id int not null,
 181+ -- Native ID number of this revision within the repository.
 182+ cpc_rev_id int not null,
 183+
 184+ -- The item that was changed
 185+ cpc_attrib enum('status','tags') not null,
 186+ -- How it was changed
 187+ cpc_removed blob,
 188+ cpc_added blob,
 189+
 190+ -- Timestamp of the change, in MediaWiki format.
 191+ cpc_timestamp binary(14) not null default '',
 192+
 193+ -- User id/name of the commentor
 194+ cpc_user int not null,
 195+ cpc_user_text varchar(255) not null,
 196+
 197+ key cpc_repo_rev_time (cpc_repo_id, cpc_rev_id, cpc_timestamp),
 198+ key cpc_repo_time (cpc_repo_id, cpc_timestamp)
 199+) /*$wgDBTableOptions*/;

Status & tagging log