|
@@ 951-969 (lines=19) @@
|
| 948 |
|
} |
| 949 |
|
} |
| 950 |
|
|
| 951 |
|
protected function doMaybeProfilingMemoryUpdate() { |
| 952 |
|
if ( !$this->doTable( 'profiling' ) ) { |
| 953 |
|
return true; |
| 954 |
|
} |
| 955 |
|
|
| 956 |
|
if ( !$this->db->tableExists( 'profiling', __METHOD__ ) ) { |
| 957 |
|
return true; |
| 958 |
|
} elseif ( $this->db->fieldExists( 'profiling', 'pf_memory', __METHOD__ ) ) { |
| 959 |
|
$this->output( "...profiling table has pf_memory field.\n" ); |
| 960 |
|
|
| 961 |
|
return true; |
| 962 |
|
} |
| 963 |
|
|
| 964 |
|
return $this->applyPatch( |
| 965 |
|
'patch-profiling-memory.sql', |
| 966 |
|
false, |
| 967 |
|
'Adding pf_memory field to table profiling' |
| 968 |
|
); |
| 969 |
|
} |
| 970 |
|
|
| 971 |
|
protected function doFilearchiveIndicesUpdate() { |
| 972 |
|
$info = $this->db->indexInfo( 'filearchive', 'fa_user_timestamp', __METHOD__ ); |
|
@@ 1109-1127 (lines=19) @@
|
| 1106 |
|
); |
| 1107 |
|
} |
| 1108 |
|
|
| 1109 |
|
protected function doRevisionPageRevIndexNonUnique() { |
| 1110 |
|
if ( !$this->doTable( 'revision' ) ) { |
| 1111 |
|
return true; |
| 1112 |
|
} elseif ( !$this->db->indexExists( 'revision', 'rev_page_id' ) ) { |
| 1113 |
|
$this->output( "...rev_page_id index not found on revision.\n" ); |
| 1114 |
|
return true; |
| 1115 |
|
} |
| 1116 |
|
|
| 1117 |
|
if ( !$this->db->indexUnique( 'revision', 'rev_page_id' ) ) { |
| 1118 |
|
$this->output( "...rev_page_id index already non-unique.\n" ); |
| 1119 |
|
return true; |
| 1120 |
|
} |
| 1121 |
|
|
| 1122 |
|
return $this->applyPatch( |
| 1123 |
|
'patch-revision-page-rev-index-nonunique.sql', |
| 1124 |
|
false, |
| 1125 |
|
'Making rev_page_id index non-unique' |
| 1126 |
|
); |
| 1127 |
|
} |
| 1128 |
|
|
| 1129 |
|
public function getSchemaVars() { |
| 1130 |
|
global $wgDBTableOptions; |