r53920 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53919‎ | r53920 | r53921 >
Date:01:39, 29 July 2009
Author:brion
Status:ok
Tags:
Comment:
Add updater entries for new tables/fields... need to add the enum change though still.
Modified paths:
  • /trunk/extensions/CodeReview/CodeReview.php (modified) (history)
  • /trunk/extensions/CodeReview/archives/code_relations_index.sql (modified) (history)
  • /trunk/extensions/CodeReview/codereview.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/codereview.sql
@@ -126,7 +126,7 @@
127127 cf_to int not null,
128128
129129 primary key (cf_repo_id, cf_from, cf_to),
130 - key (cf_repo_id, cf_to, cf_from)
 130+ key repo_to_from (cf_repo_id, cf_to, cf_from)
131131 ) /*$wgDBTableOptions*/;
132132
133133 -- And for our commenting system...
Index: trunk/extensions/CodeReview/archives/code_relations_index.sql
@@ -1,2 +1,2 @@
22 ALTER TABLE /*$wgDBprefix*/code_relations
3 - ADD key (cf_repo_id, cf_to, cf_from);
 3+ ADD key repo_to_from (cf_repo_id, cf_to, cf_from);
Index: trunk/extensions/CodeReview/CodeReview.php
@@ -131,6 +131,10 @@
132132 $base = dirname(__FILE__);
133133 if( $wgDBtype == 'mysql' ) {
134134 $wgExtNewTables[] = array( 'code_rev', "$base/codereview.sql" ); // Initial install tables
 135+ $wgExtNewFields[] = array( 'code_rev', 'cr_diff', "$base/archives/codereview-cr_diff.sql" );
 136+ $wgExtNewIndexes[] = array( 'code_relations', 'repo_to_from', "$base/archives/code_relations_index.sql" );
 137+ //$wgExtNewFields[] = array( 'code_rev', "$base/archives/codereview-cr_status.sql" ); // FIXME FIXME this is a change to options... don't know how
 138+ $wgExtNewTables[] = array( 'code_bugs', "$base/archives/code_bugs.sql" );
135139 } elseif( $wgDBtype == 'postgres' ) {
136140 // TODO
137141 }

Status & tagging log