Index: trunk/phase3/includes/Image.php |
— | — | @@ -1244,6 +1244,10 @@ |
1245 | 1245 | } |
1246 | 1246 | |
1247 | 1247 | function checkDBSchema(&$db) { |
| 1248 | + global $wgCheckDBSchema; |
| 1249 | + if (!$wgCheckDBSchema) { |
| 1250 | + return; |
| 1251 | + } |
1248 | 1252 | # img_name must be unique |
1249 | 1253 | if ( !$db->indexUnique( 'image', 'img_name' ) && !$db->indexExists('image','PRIMARY') ) { |
1250 | 1254 | wfDebugDieBacktrace( 'Database schema not up to date, please run maintenance/archives/patch-image_name_unique.sql' ); |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -432,6 +432,8 @@ |
433 | 433 | $wgDBschema = 'mediawiki'; |
434 | 434 | /**#@-*/ |
435 | 435 | |
| 436 | +/** Live high performance sites should disable this - some checks acquire giant mysql locks */ |
| 437 | +$wgCheckDBSchema = true; |
436 | 438 | |
437 | 439 | |
438 | 440 | /** |