'page_id',
'page_namespace',
'page_title',
- 'page_key',
'page_restrictions',
'page_counter',
'page_is_redirect',
* @private
*/
function insertOn( $dbw ) {
- global $wgContLang;
wfProfileIn( __METHOD__ );
$page_id = $dbw->nextSequenceValue( 'page_page_id_seq' );
'page_id' => $page_id,
'page_namespace' => $this->mTitle->getNamespace(),
'page_title' => $this->mTitle->getDBkey(),
- 'page_key' => $wgContLang->caseFold($this->mTitle->getDBkey()),
'page_counter' => 0,
'page_restrictions' => '',
'page_is_redirect' => 0, # Will set this shortly...
* be a redirect
*/
private function moveOverExistingRedirect( &$nt, $reason = '' ) {
- global $wgUseSquid, $wgContLang;
+ global $wgUseSquid;
$fname = 'Title::moveOverExistingRedirect';
$comment = wfMsgForContent( '1movedto2_redir', $this->getPrefixedText(), $nt->getPrefixedText() );
'page_touched' => $dbw->timestamp($now),
'page_namespace' => $nt->getNamespace(),
'page_title' => $nt->getDBkey(),
- 'page_key' => $wgContLang->caseFold($nt->getDBkey()),
'page_latest' => $nullRevId,
),
/* WHERE */ array( 'page_id' => $oldid ),
* @param Title &$nt the new Title
*/
private function moveToNewTitle( &$nt, $reason = '' ) {
- global $wgUseSquid, $wgContLang;
+ global $wgUseSquid;
$fname = 'MovePageForm::moveToNewTitle';
$comment = wfMsgForContent( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() );
if ( $reason ) {
'page_touched' => $now,
'page_namespace' => $nt->getNamespace(),
'page_title' => $nt->getDBkey(),
- 'page_key' => $wgContLang->caseFold($nt->getDBkey()),
'page_latest' => $nullRevId,
),
/* WHERE */ array( 'page_id' => $oldid ),
+++ /dev/null
-ALTER TABLE /*$wgDBprefix*/page
- ADD page_key VARCHAR(255) BINARY NOT NULL;
-ALTER TABLE /*$wgDBprefix*/page
- ADD INDEX name_key (page_namespace, page_key);
-
-- Spaces are transformed into underscores in title storage.
page_title varchar(255) binary NOT NULL,
- -- page_title in uppercase. Used for case-insensitive title searching.
- page_key varchar(255) binary NOT NULL,
-
-- Comma-separated set of permission keys indicating who
-- can move or edit the page.
page_restrictions tinyblob NOT NULL,
PRIMARY KEY page_id (page_id),
UNIQUE INDEX name_title (page_namespace,page_title),
- INDEX name_key (page_namespace, page_key),
-- Special-purpose indexes
INDEX (page_random),
array( 'oldimage', 'oi_metadata', 'patch-oi_metadata.sql'),
array( 'archive', 'ar_page', 'patch-archive-ar_page.sql'),
array( 'image', 'img_sha1', 'patch-img_sha1.sql' ),
- array( 'page', 'page_key', 'patch-page_key.sql' ),
);
# For extensions only, should be populated via hooks