Manual:Sites table

Schema summary
DESCRIBE sites; in MediaWiki 1.22alpha (2a2e9e6) results in: +-+--+--+-+-++ +-+--+--+-+-++ +-+--+--+-+-++
 * Field          | Type             | Null | Key | Default | Extra          |
 * site_id        | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
 * site_global_key | varbinary(32)   | NO   | UNI | NULL    |                |
 * site_type      | varbinary(32)    | NO   | MUL | NULL    |                |
 * site_group     | varbinary(32)    | NO   | MUL | NULL    |                |
 * site_source    | varbinary(32)    | NO   | MUL | NULL    |                |
 * site_language  | varbinary(32)    | NO   | MUL | NULL    |                |
 * site_protocol  | varbinary(32)    | NO   | MUL | NULL    |                |
 * site_domain    | varbinary(255)   | NO   | MUL | NULL    |                |
 * site_data      | blob             | NO   |     | NULL    |                |
 * site_forward   | tinyint(1)       | NO   | MUL | NULL    |                |
 * site_config    | blob             | NO   |     | NULL    |                |

Insert wiki family
Sometimes, you have to add your wikis in this table. You can use this code.

$sites = array; foreach ( array( 'en', 'fr' ) as $langCode ) { $site = new MediaWikiSite; $site->setGlobalId( $langCode . 'mywiki' ); $site->setGroup( 'mywiki' ); $site->setLanguageCode( $langCode ); $site->addInterwikiId( $langCode ); $site->addNavigationId( $langCode ); $site->setPath( MediaWikiSite::PATH_PAGE, "http://$langCode.mywiki.org/wiki/$1" ); $site->setPath( MediaWikiSite::PATH_FILE, "http://$langCode.mywiki.org/w/$1" ); $sites[] = $site; }		$sitesTable = SiteSQLStore::newInstance; $sitesTable->clear; $sitesTable->saveSites( $sites );