maintenance/updaters.inc File Reference

Go to the source code of this file.

Functions

 update_row_exists ($key)
 rename_table ($from, $to, $patch)
 add_table ($name, $patch, $fullpath=false)
 modify_field ($table, $field, $patch, $fullpath=false)
 add_field ($table, $field, $patch, $fullpath=false)
 add_index ($table, $index, $patch, $fullpath=false)
 do_interwiki_update ()
 do_index_update ()
 do_image_index_update ()
 do_image_name_unique_update ()
 do_logging_timestamp_index ()
 do_archive_user_index ()
 do_image_user_index ()
 do_oldimage_user_index ()
 do_watchlist_update ()
 do_copy_newtalk_to_watchlist ()
 do_user_update ()
 check_bin ($table, $field, $patchFile)
 1.4 betas were missing the 'binary' marker from logging.log_title, which causes a collation mismatch error on joins in MySQL 4.1.
 do_schema_restructuring ()
 do_inverse_timestamp ()
 do_text_id ()
 do_namespace_size ()
 do_namespace_size_on ($table, $prefix)
 do_pagelinks_update ()
 do_pagelinks_namespace ($namespace)
 do_drop_img_type ()
 do_old_links_update ()
 fix_ancient_imagelinks ()
 do_user_unique_update ()
 do_user_groups_update ()
 do_user_groups_reformat ()
 do_watchlist_null ()
 do_page_random_update ()
 do_templatelinks_update ()
 do_rc_indices_update ()
 index_has_field ($table, $index, $field)
 do_backlinking_indices_update ()
 do_categorylinks_indices_update ()
 do_filearchive_indices_update ()
 maybe_do_profiling_memory_update ()
 do_stats_init ()
 do_active_users_init ()
 purge_cache ()
 do_all_updates ($shared=false, $purge=true)
 archive ($name)
 do_restrictions_update ()
 do_category_population ()
 do_populate_parent_id ()
 sqlite_initial_indexes ()
 sqlite_setup_searchindex ()
 do_unique_pl_tl_il ()
 do_log_search_population ()
 rename_eu_wiki_id ()
 do_update_transcache_field ()
 do_update_mime_minor_field ()
 pg_describe_table ($table)
 pg_describe_index ($idx)
 pg_index_exists ($table, $index)
 pg_fkey_deltype ($fkey)
 pg_rule_def ($table, $rule)
 do_postgres_updates ()

Variables

 if (!defined( 'MEDIAWIKI'))
 $wgUpdates
 List of update functions to call for each DB type, in sequence.
 $wgExtNewTables = array()
 $wgExtNewFields = array()
 $wgExtPGNewFields = array()
 $wgExtPGAlteredFields = array()
 $wgExtNewIndexes = array()
 $wgExtModifiedFields = array()


Detailed Description

Definition in file updaters.inc.


Function Documentation

add_field ( table,
field,
patch,
fullpath = false 
)

Definition at line 278 of file updaters.inc.

References archive(), and wfOut().

Referenced by do_all_updates().

add_index ( table,
index,
patch,
fullpath = false 
)

Definition at line 295 of file updaters.inc.

References archive(), and wfOut().

Referenced by do_all_updates().

add_table ( name,
patch,
fullpath = false 
)

Definition at line 244 of file updaters.inc.

References $name, archive(), and wfOut().

Referenced by do_all_updates().

archive ( name  ) 

check_bin ( table,
field,
patchFile 
)

1.4 betas were missing the 'binary' marker from logging.log_title, which causes a collation mismatch error on joins in MySQL 4.1.

Definition at line 493 of file updaters.inc.

References $res, $wgDBtype, archive(), and wfOut().

do_active_users_init (  ) 

Definition at line 1083 of file updaters.inc.

References wfOut().

do_all_updates ( shared = false,
purge = true 
)

do_archive_user_index (  ) 

Definition at line 375 of file updaters.inc.

References archive(), and wfOut().

do_backlinking_indices_update (  ) 

Definition at line 1021 of file updaters.inc.

References archive(), index_has_field(), and wfOut().

do_category_population (  ) 

Definition at line 1255 of file updaters.inc.

References populateCategory(), update_row_exists(), and wfOut().

do_categorylinks_indices_update (  ) 

Definition at line 1033 of file updaters.inc.

References archive(), index_has_field(), and wfOut().

do_copy_newtalk_to_watchlist (  ) 

Definition at line 439 of file updaters.inc.

References $i, $res, $wgCommandLineMode, and wfOut().

do_drop_img_type (  ) 

Definition at line 777 of file updaters.inc.

References archive(), and wfOut().

do_filearchive_indices_update (  ) 

Definition at line 1043 of file updaters.inc.

References archive(), and wfOut().

do_image_index_update (  ) 

Definition at line 339 of file updaters.inc.

References archive(), and wfOut().

do_image_name_unique_update (  ) 

Definition at line 353 of file updaters.inc.

References archive(), and wfOut().

do_image_user_index (  ) 

Definition at line 386 of file updaters.inc.

References archive(), and wfOut().

do_index_update (  ) 

Definition at line 325 of file updaters.inc.

References archive(), and wfOut().

do_interwiki_update (  ) 

Definition at line 310 of file updaters.inc.

References $IP, archive(), and wfOut().

do_inverse_timestamp (  ) 

Definition at line 677 of file updaters.inc.

References archive(), and wfOut().

do_log_search_population (  ) 

Definition at line 1321 of file updaters.inc.

References migrate_log_params(), update_row_exists(), and wfOut().

do_logging_timestamp_index (  ) 

Definition at line 364 of file updaters.inc.

References archive(), and wfOut().

do_namespace_size (  ) 

Definition at line 699 of file updaters.inc.

References do_namespace_size_on().

do_namespace_size_on ( table,
prefix 
)

Definition at line 714 of file updaters.inc.

References $result, $wgDBtype, and wfOut().

Referenced by do_namespace_size().

do_old_links_update (  ) 

Definition at line 789 of file updaters.inc.

References convertLinks(), and wfOut().

do_oldimage_user_index (  ) 

Definition at line 397 of file updaters.inc.

References archive(), and wfOut().

do_page_random_update (  ) 

Bug:
3946

Definition at line 920 of file updaters.inc.

References $page, $rows, and wfOut().

do_pagelinks_namespace ( namespace  ) 

Definition at line 756 of file updaters.inc.

References $name, $wgContLang, and wfOut().

Referenced by do_pagelinks_update().

do_pagelinks_update (  ) 

do_populate_parent_id (  ) 

Definition at line 1269 of file updaters.inc.

References populate_rev_parent_id(), update_row_exists(), and wfOut().

do_postgres_updates (  ) 

do_rc_indices_update (  ) 

Definition at line 984 of file updaters.inc.

References archive(), and wfOut().

do_restrictions_update (  ) 

Definition at line 1180 of file updaters.inc.

References $name, $res, archive(), wfOut(), and wfWaitForSlaves().

do_schema_restructuring (  ) 

Definition at line 511 of file updaters.inc.

References $fname, $page, $rows, $t, $wgLegacySchemaConversion, wfOut(), and wfTimestamp().

do_stats_init (  ) 

Definition at line 1067 of file updaters.inc.

References SiteStatsInit::doAllAndCommit(), and wfOut().

Referenced by do_all_updates().

do_templatelinks_update (  ) 

Definition at line 932 of file updaters.inc.

References $fname, $res, archive(), wfOut(), and wfWaitForSlaves().

do_text_id (  ) 

Definition at line 688 of file updaters.inc.

References archive(), and wfOut().

do_unique_pl_tl_il (  ) 

Definition at line 1309 of file updaters.inc.

References archive(), and wfOut().

do_update_mime_minor_field (  ) 

Definition at line 1359 of file updaters.inc.

References archive(), update_row_exists(), and wfOut().

do_update_transcache_field (  ) 

Definition at line 1347 of file updaters.inc.

References archive(), update_row_exists(), and wfOut().

do_user_groups_reformat (  ) 

Definition at line 875 of file updaters.inc.

References archive(), and wfOut().

Referenced by do_user_groups_update().

do_user_groups_update (  ) 

Definition at line 826 of file updaters.inc.

References $fname, $result, archive(), do_user_groups_reformat(), and wfOut().

do_user_unique_update (  ) 

Definition at line 811 of file updaters.inc.

References archive(), and wfOut().

do_user_update (  ) 

Definition at line 478 of file updaters.inc.

References archive(), and wfOut().

do_watchlist_null (  ) 

Definition at line 901 of file updaters.inc.

References archive(), and wfOut().

do_watchlist_update (  ) 

Definition at line 408 of file updaters.inc.

References $fname, archive(), and wfOut().

fix_ancient_imagelinks (  ) 

Definition at line 798 of file updaters.inc.

References archive(), and wfOut().

index_has_field ( table,
index,
field 
)

Definition at line 1005 of file updaters.inc.

References wfOut().

Referenced by do_backlinking_indices_update(), and do_categorylinks_indices_update().

maybe_do_profiling_memory_update (  ) 

Definition at line 1054 of file updaters.inc.

References archive(), and wfOut().

modify_field ( table,
field,
patch,
fullpath = false 
)

Definition at line 259 of file updaters.inc.

References archive(), and wfOut().

Referenced by do_all_updates().

pg_describe_index ( idx  ) 

Definition at line 1401 of file updaters.inc.

References $res, and $wgDBmwschema.

Referenced by do_postgres_updates().

pg_describe_table ( table  ) 

Definition at line 1377 of file updaters.inc.

References $res, and $wgDBmwschema.

pg_fkey_deltype ( fkey  ) 

Definition at line 1459 of file updaters.inc.

References $wgDBmwschema.

Referenced by do_postgres_updates().

pg_index_exists ( table,
index 
)

Definition at line 1450 of file updaters.inc.

References $wgDBmwschema.

Referenced by do_postgres_updates().

pg_rule_def ( table,
rule 
)

Definition at line 1475 of file updaters.inc.

References $wgDBmwschema.

purge_cache (  ) 

Definition at line 1099 of file updaters.inc.

References wfOut().

Referenced by do_all_updates().

rename_eu_wiki_id (  ) 

Definition at line 1336 of file updaters.inc.

References archive(), and wfOut().

rename_table ( from,
to,
patch 
)

Definition at line 227 of file updaters.inc.

References archive(), and wfOut().

sqlite_initial_indexes (  ) 

Definition at line 1280 of file updaters.inc.

References archive(), update_row_exists(), and wfOut().

sqlite_setup_searchindex (  ) 

Definition at line 1292 of file updaters.inc.

References archive(), update_row_exists(), and wfOut().

update_row_exists ( key  ) 


Variable Documentation

$wgExtModifiedFields = array()

Definition at line 211 of file updaters.inc.

Referenced by do_all_updates().

$wgExtNewFields = array()

Definition at line 207 of file updaters.inc.

Referenced by do_all_updates().

$wgExtNewIndexes = array()

Definition at line 210 of file updaters.inc.

Referenced by do_all_updates(), and do_postgres_updates().

$wgExtNewTables = array()

Definition at line 206 of file updaters.inc.

Referenced by do_all_updates(), and do_postgres_updates().

$wgExtPGAlteredFields = array()

Definition at line 209 of file updaters.inc.

Referenced by do_postgres_updates().

$wgExtPGNewFields = array()

Definition at line 208 of file updaters.inc.

Referenced by do_postgres_updates().

$wgUpdates

List of update functions to call for each DB type, in sequence.

First item is function name, rest are parameters to pass.

Definition at line 21 of file updaters.inc.

Referenced by do_all_updates().

if(!defined( 'MEDIAWIKI'))

Definition at line 7 of file updaters.inc.


Generated on Sat Apr 30 22:57:28 2011 for MediaWiki by  doxygen 1.5.9