r74377 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74376‎ | r74377 | r74378 >
Date:18:22, 6 October 2010
Author:reedy
Status:ok (Comments)
Tags:
Comment:
*(bug 25415) Make cr_status varchar

Drop codereview-cr_status.sql (not used), removed commented code

Drop stuff in DB to add old to enum
Modified paths:
  • /trunk/extensions/CodeReview/CodeReview.php (modified) (history)
  • /trunk/extensions/CodeReview/archives/codereview-cr_old_status.sql (deleted) (history)
  • /trunk/extensions/CodeReview/archives/codereview-cr_status.sql (deleted) (history)
  • /trunk/extensions/CodeReview/archives/codereview-cr_status_varchar.sql (added) (history)
  • /trunk/extensions/CodeReview/codereview.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeReview.php
@@ -173,10 +173,8 @@
174174 $updater->addExtensionUpdate( array( 'addField', 'code_rev', 'cr_diff', "$base/archives/codereview-cr_diff.sql", true ) );
175175 $updater->addExtensionUpdate( array( 'addIndex', 'code_relations', 'repo_to_from', "$base/archives/code_relations_index.sql", true ) );
176176
177 - // $updater->addExtensionUpdate( array( 'addField', 'code_rev', 'cr_status', "$base/archives/codereview-cr_status.sql", true ) ); // FIXME FIXME this is a change to options... don't know how
178 -
179 - if ( !$updater->updateRowExists( 'add old to code_rev enum' ) ) {
180 - $updater->addExtensionUpdate( array( 'modifyField', 'code_rev', 'cr_status', "$base/archives/codereview-cr_old_status.sql", true ) );
 177+ if ( !$updater->updateRowExists( 'make cr_status varchar' ) ) {
 178+ $updater->addExtensionUpdate( array( 'modifyField', 'code_rev', 'cr_status', "$base/archives/codereview-cr_status_varchar.sql", true ) );
181179 }
182180
183181 $updater->addExtensionUpdate( array( 'addTable', 'code_bugs', "$base/archives/code_bugs.sql", true ) );
Index: trunk/extensions/CodeReview/archives/codereview-cr_status.sql
@@ -1,4 +0,0 @@
2 -ALTER TABLE /*$wgDBprefix*/code_rev
3 - CHANGE `cr_status` `cr_status`
4 - ENUM( 'new', 'fixme', 'reverted', 'resolved', 'ok', 'verified', 'deferred' )
5 - NOT NULL DEFAULT 'new';
Index: trunk/extensions/CodeReview/archives/codereview-cr_old_status.sql
@@ -1,6 +0,0 @@
2 -ALTER TABLE /*$wgDBprefix*/code_rev
3 - CHANGE `cr_status` `cr_status`
4 - ENUM( 'new', 'fixme', 'reverted', 'resolved', 'ok', 'verified', 'deferred', 'old' )
5 - NOT NULL DEFAULT 'new';
6 -
7 -INSERT INTO /*$wgDBprefix*/updatelog( ul_key ) VALUES( 'add old to code_rev enum' );
\ No newline at end of file
Index: trunk/extensions/CodeReview/archives/codereview-cr_status_varchar.sql
@@ -0,0 +1,5 @@
 2+ALTER TABLE /*$wgDBprefix*/code_rev
 3+ MODIFY `cr_status`
 4+ VARCHAR(25) NOT NULL DEFAULT 'new';
 5+
 6+INSERT INTO /*$wgDBprefix*/updatelog( ul_key ) VALUES( 'make cr_status varchar' );
\ No newline at end of file
Property changes on: trunk/extensions/CodeReview/archives/codereview-cr_status_varchar.sql
___________________________________________________________________
Added: svn:eol-style
17 + native
Index: trunk/extensions/CodeReview/codereview.sql
@@ -46,15 +46,7 @@
4747 cr_message blob,
4848
4949 -- Status key for how this thang is...
50 - -- 'new': Hasn't yet been reviewed
51 - -- 'fixme': This revision has some problem which needs to be resolved
52 - -- 'reverted': Was completely reverted by a later revision
53 - -- 'resolved': Issues with this rev have been since resolved
54 - -- 'ok': Reviewed, no issues spotted
55 - -- 'verified': Reviewed and tested, no issues spotted
56 - -- 'deferred': Not reviewed at this time (usually non-Wikimedia extension)
57 - -- 'old': Predates the extension/doesn't require review
58 - cr_status enum('new', 'fixme', 'reverted', 'resolved', 'ok', 'verified', 'deferred', 'old') not null default 'new',
 50+ cr_status varchar(25) not null default 'new',
5951
6052 -- Base path of this revision :
6153 -- * if the revision change only one file, the file path

Follow-up revisions

RevisionCommit summaryAuthorDate
r74378Minor followup to r74377, reinstate comment about statuses. Add a comment to ...reedy18:28, 6 October 2010

Comments

#Comment by MaxSem (talk | contribs)   18:24, 6 October 2010

I recommend to keep the comment about possible values.

Status & tagging log