Index: trunk/extensions/CodeReview/CodeReview.php |
— | — | @@ -278,6 +278,9 @@ |
279 | 279 | $updater->addExtensionUpdate( array( 'modifyField', 'code_prop_changes', 'cpc_attrib', |
280 | 280 | "$base/archives/codereview-cpc_attrib_varchar.sql", true ) ); |
281 | 281 | } |
| 282 | + |
| 283 | + $updater->addExtensionUpdate( array( 'addIndex', 'code_paths', 'repo_path', |
| 284 | + "$base/archives/codereview-repopath.sql", true ) ); |
282 | 285 | break; |
283 | 286 | case 'sqlite': |
284 | 287 | $updater->addNewExtension( 'CodeReview', "$base/codereview.sql" ); |
Index: trunk/extensions/CodeReview/codereview.sql |
— | — | @@ -116,6 +116,7 @@ |
117 | 117 | primary key (cp_repo_id, cp_rev_id, cp_path) |
118 | 118 | ) /*$wgDBTableOptions*/; |
119 | 119 | |
| 120 | +CREATE INDEX /*i*/repo_path ON /*_*/code_paths (cp_repo_id, cp_path); |
120 | 121 | |
121 | 122 | -- And for our commenting system... |
122 | 123 | -- To specify follow-up relationships... |
Index: trunk/extensions/CodeReview/archives/codereview-repopath.sql |
— | — | @@ -0,0 +1 @@ |
| 2 | +CREATE INDEX /*i*/repo_path ON /*_*/code_paths (cp_repo_id, cp_path); |
\ No newline at end of file |
Property changes on: trunk/extensions/CodeReview/archives/codereview-repopath.sql |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 3 | + native |