Index: trunk/extensions/CodeReview/codereview.sql |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | cf_to int not null, |
128 | 128 | |
129 | 129 | 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) |
131 | 131 | ) /*$wgDBTableOptions*/; |
132 | 132 | |
133 | 133 | -- And for our commenting system... |
Index: trunk/extensions/CodeReview/archives/code_relations_index.sql |
— | — | @@ -1,2 +1,2 @@ |
2 | 2 | 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 @@ |
132 | 132 | $base = dirname(__FILE__); |
133 | 133 | if( $wgDBtype == 'mysql' ) { |
134 | 134 | $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" ); |
135 | 139 | } elseif( $wgDBtype == 'postgres' ) { |
136 | 140 | // TODO |
137 | 141 | } |