Go to the documentation of this file.
84 const SEND_NONE =
true;
89 const SEND_FEED =
false;
149 if ( is_array(
$type ) ) {
158 if ( !array_key_exists(
$type, self::$changeTypes ) ) {
161 return self::$changeTypes[
$type];
171 return array_search( $rcType, self::$changeTypes,
true ) ?:
"$rcType";
182 return array_keys( self::$changeTypes );
211 $row = $db->selectRow(
212 $rcQuery[
'tables'], $rcQuery[
'fields'], $conds,
$fname, [], $rcQuery[
'joins']
214 if ( $row !==
false ) {
236 throw new BadMethodCallException(
237 'Cannot use ' . __METHOD__
238 .
' when $wgActorTableSchemaMigrationStage has SCHEMA_COMPAT_READ_NEW'
247 'rc_actor' =>
'NULL',
283 'tables' => [
'recentchanges' ] + $commentQuery[
'tables'] + $actorQuery[
'tables'],
306 ] + $commentQuery[
'fields'] + $actorQuery[
'fields'],
307 'joins' => $commentQuery[
'joins'] + $actorQuery[
'joins'],
324 $this->mExtra = $extra;
331 if ( $this->mTitle ===
false ) {
332 $this->mTitle =
Title::makeTitle( $this->mAttribs[
'rc_namespace'], $this->mAttribs[
'rc_title'] );
344 if ( $this->mPerformer ===
false ) {
345 if ( !empty( $this->mAttribs[
'rc_actor'] ) ) {
347 } elseif ( !empty( $this->mAttribs[
'rc_user'] ) ) {
349 } elseif ( !empty( $this->mAttribs[
'rc_user_text'] ) ) {
352 throw new MWException(
'RecentChange object lacks rc_actor, rc_user, and rc_user_text' );
368 public function save( $send = self::SEND_FEED ) {
371 if ( is_string( $send ) ) {
375 $send = self::SEND_NONE;
379 if ( !is_array( $this->mExtra ) ) {
384 $this->mAttribs[
'rc_ip'] =
'';
387 # Strict mode fixups (not-NULL fields)
388 foreach ( [
'minor',
'bot',
'new',
'patrolled',
'deleted' ]
as $field ) {
389 $this->mAttribs[
"rc_$field"] = (int)$this->mAttribs[
"rc_$field"];
391 # ...more fixups (NULL fields)
392 foreach ( [
'old_len',
'new_len' ]
as $field ) {
393 $this->mAttribs[
"rc_$field"] = isset( $this->mAttribs[
"rc_$field"] )
394 ? (int)$this->mAttribs[
"rc_$field"]
398 # If our database is strict about IP addresses, use NULL instead of an empty string
399 $strictIPs = in_array( $dbw->getType(), [
'oracle',
'postgres' ] );
400 if ( $strictIPs && $this->mAttribs[
'rc_ip'] ==
'' ) {
401 unset( $this->mAttribs[
'rc_ip'] );
404 # Trim spaces on user supplied text
405 $this->mAttribs[
'rc_comment'] = trim( $this->mAttribs[
'rc_comment'] );
407 # Fixup database timestamps
408 $this->mAttribs[
'rc_timestamp'] = $dbw->timestamp( $this->mAttribs[
'rc_timestamp'] );
410 # # If we are using foreign keys, an entry of 0 for the page_id will fail, so use NULL
411 if ( $this->mAttribs[
'rc_cur_id'] == 0 ) {
412 unset( $this->mAttribs[
'rc_cur_id'] );
417 # Convert mAttribs['rc_comment'] for CommentStore
418 $comment = $row[
'rc_comment'];
419 unset( $row[
'rc_comment'], $row[
'rc_comment_text'], $row[
'rc_comment_data'] );
422 # Convert mAttribs['rc_user'] etc for ActorMigration
424 $row[
'rc_user'] ??
null,
425 $row[
'rc_user_text'] ??
null,
426 $row[
'rc_actor'] ??
null
428 unset( $row[
'rc_user'], $row[
'rc_user_text'], $row[
'rc_actor'] );
431 # Don't reuse an existing rc_id for the new row, if one happens to be
432 # set for some reason.
433 unset( $row[
'rc_id'] );
436 $dbw->insert(
'recentchanges', $row, __METHOD__ );
439 $this->mAttribs[
'rc_id'] = $dbw->insertId();
446 if (
count( $this->tags ) ) {
448 $this->mAttribs[
'rc_this_oldid'], $this->mAttribs[
'rc_logid'],
null, $this );
451 if ( $send === self::SEND_FEED ) {
456 # E-mail notifications
468 $dbw->onTransactionCommitOrIdle(
471 $enotif->notifyOnPageChange(
474 $this->mAttribs[
'rc_timestamp'],
475 $this->mAttribs[
'rc_comment'],
476 $this->mAttribs[
'rc_minor'],
477 $this->mAttribs[
'rc_last_oldid'],
478 $this->mExtra[
'pageStatus']
487 if ( $this->mAttribs[
'rc_user'] > 0 ) {
498 if ( $feeds ===
null ) {
506 'omit_bots' =>
false,
507 'omit_anon' =>
false,
508 'omit_user' =>
false,
509 'omit_minor' =>
false,
510 'omit_patrolled' =>
false,
514 (
$params[
'omit_bots'] && $this->mAttribs[
'rc_bot'] ) ||
515 (
$params[
'omit_anon'] && $performer->isAnon() ) ||
516 (
$params[
'omit_user'] && !$performer->isAnon() ) ||
517 (
$params[
'omit_minor'] && $this->mAttribs[
'rc_minor'] ) ||
518 (
$params[
'omit_patrolled'] && $this->mAttribs[
'rc_patrolled'] ) ||
524 $actionComment = $this->mExtra[
'actionCommentIRC'] ??
null;
527 $feed->notify( $this, $actionComment );
542 $scheme = parse_url( $uri, PHP_URL_SCHEME );
544 throw new MWException(
"Invalid RCFeed uri: '$uri'" );
547 throw new MWException(
"Unknown RCFeedEngine scheme: '$scheme'" );
549 if ( defined(
'MW_PHPUNIT_TEST' ) && is_object(
$wgRCEngines[$scheme] ) ) {
575 return $change->doMarkPatrolled( $wgUser,
$auto,
$tags );
597 $this->
getAttribute(
'rc_log_type' ) ==
'upload' ) ) ) {
598 $errors[] = [
'rcpatroldisabled' ];
601 $right =
$auto ?
'autopatrol' :
'patrol';
602 $errors = array_merge( $errors, $this->
getTitle()->getUserPermissionsErrors( $right,
$user ) );
606 $errors[] = [
'hookaborted' ];
613 $errors[] = [
'markedaspatrollederror-noautopatrol' ];
628 'MarkPatrolledComplete',
644 'rc_patrolled' => self::PRC_PATROLLED
653 $this->
getTitle()->invalidateCache();
655 return $dbw->affectedRows();
678 $timestamp,
$title, $minor,
$user, $comment, $oldId, $lastTimestamp,
679 $bot, $ip =
'', $oldSize = 0, $newSize = 0, $newId = 0, $patrol = 0,
684 $rc->mPerformer =
$user;
686 'rc_timestamp' => $timestamp,
687 'rc_namespace' =>
$title->getNamespace(),
688 'rc_title' =>
$title->getDBkey(),
691 'rc_minor' => $minor ? 1 : 0,
692 'rc_cur_id' =>
$title->getArticleID(),
693 'rc_user' =>
$user->getId(),
694 'rc_user_text' =>
$user->getName(),
695 'rc_actor' =>
$user->getActorId(),
696 'rc_comment' => &$comment,
697 'rc_comment_text' => &$comment,
698 'rc_comment_data' =>
null,
699 'rc_this_oldid' => $newId,
700 'rc_last_oldid' => $oldId,
701 'rc_bot' => $bot ? 1 : 0,
703 'rc_patrolled' => intval( $patrol ),
704 'rc_new' => 0, # obsolete
705 'rc_old_len' => $oldSize,
706 'rc_new_len' => $newSize,
709 'rc_log_type' =>
null,
710 'rc_log_action' =>
'',
715 'prefixedDBkey' =>
$title->getPrefixedDBkey(),
716 'lastTimestamp' => $lastTimestamp,
717 'oldSize' => $oldSize,
718 'newSize' => $newSize,
719 'pageStatus' =>
'changed'
724 $rc->addTags(
$tags );
753 $ip =
'', $size = 0, $newId = 0, $patrol = 0,
$tags = []
757 $rc->mPerformer =
$user;
759 'rc_timestamp' => $timestamp,
760 'rc_namespace' =>
$title->getNamespace(),
761 'rc_title' =>
$title->getDBkey(),
764 'rc_minor' => $minor ? 1 : 0,
765 'rc_cur_id' =>
$title->getArticleID(),
766 'rc_user' =>
$user->getId(),
767 'rc_user_text' =>
$user->getName(),
768 'rc_actor' =>
$user->getActorId(),
769 'rc_comment' => &$comment,
770 'rc_comment_text' => &$comment,
771 'rc_comment_data' =>
null,
772 'rc_this_oldid' => $newId,
773 'rc_last_oldid' => 0,
774 'rc_bot' => $bot ? 1 : 0,
776 'rc_patrolled' => intval( $patrol ),
777 'rc_new' => 1, # obsolete
779 'rc_new_len' => $size,
782 'rc_log_type' =>
null,
783 'rc_log_action' =>
'',
788 'prefixedDBkey' =>
$title->getPrefixedDBkey(),
789 'lastTimestamp' => 0,
792 'pageStatus' =>
'created'
797 $rc->addTags(
$tags );
823 $action, $target, $logComment,
$params, $newId = 0, $actionCommentIRC =
''
827 # Don't add private logs to RC!
832 $target, $logComment,
$params, $newId, $actionCommentIRC );
856 $type, $action, $target, $logComment,
$params, $newId = 0, $actionCommentIRC =
'',
857 $revId = 0, $isPatrollable =
false ) {
860 # # Get pageStatus for email notification
861 switch (
$type .
'-' . $action ) {
862 case 'delete-delete':
863 case 'delete-delete_redir':
864 $pageStatus =
'deleted';
867 case 'move-move_redir':
868 $pageStatus =
'moved';
870 case 'delete-restore':
871 $pageStatus =
'restored';
873 case 'upload-upload':
874 $pageStatus =
'created';
876 case 'upload-overwrite':
878 $pageStatus =
'changed';
883 $markPatrolled = $isPatrollable ?
$user->isAllowed(
'autopatrol' ) :
true;
886 $rc->mTitle = $target;
887 $rc->mPerformer =
$user;
889 'rc_timestamp' => $timestamp,
890 'rc_namespace' => $target->getNamespace(),
891 'rc_title' => $target->getDBkey(),
895 'rc_cur_id' => $target->getArticleID(),
896 'rc_user' =>
$user->getId(),
897 'rc_user_text' =>
$user->getName(),
898 'rc_actor' =>
$user->getActorId(),
899 'rc_comment' => &$logComment,
900 'rc_comment_text' => &$logComment,
901 'rc_comment_data' =>
null,
902 'rc_this_oldid' => $revId,
903 'rc_last_oldid' => 0,
904 'rc_bot' =>
$user->isAllowed(
'bot' ) ? (int)
$wgRequest->getBool(
'bot',
true ) : 0,
907 'rc_new' => 0, # obsolete
908 'rc_old_len' =>
null,
909 'rc_new_len' =>
null,
911 'rc_logid' => $newId,
912 'rc_log_type' =>
$type,
913 'rc_log_action' => $action,
918 'prefixedDBkey' =>
$title->getPrefixedDBkey(),
919 'lastTimestamp' => 0,
920 'actionComment' => $actionComment,
921 'pageStatus' => $pageStatus,
922 'actionCommentIRC' => $actionCommentIRC
951 Title $categoryTitle,
967 if ( $added !==
null ) {
972 $rc->mTitle = $categoryTitle;
973 $rc->mPerformer =
$user;
975 'rc_timestamp' => $timestamp,
977 'rc_title' => $categoryTitle->
getDBkey(),
983 'rc_user_text' =>
$user ?
$user->getName() :
'',
984 'rc_actor' =>
$user ?
$user->getActorId() :
null,
985 'rc_comment' => &$comment,
986 'rc_comment_text' => &$comment,
987 'rc_comment_data' =>
null,
988 'rc_this_oldid' => $newRevId,
989 'rc_last_oldid' => $oldRevId,
990 'rc_bot' => $bot ? 1 : 0,
993 'rc_new' => 0, # obsolete
994 'rc_old_len' =>
null,
995 'rc_new_len' =>
null,
996 'rc_deleted' => $deleted,
998 'rc_log_type' =>
null,
999 'rc_log_action' =>
'',
1005 'lastTimestamp' => $lastTimestamp,
1008 'pageStatus' =>
'changed'
1033 $this->mAttribs = get_object_vars( $row );
1034 $this->mAttribs[
'rc_timestamp'] =
wfTimestamp( TS_MW, $this->mAttribs[
'rc_timestamp'] );
1036 $this->mAttribs[
'rc_deleted'] = $row->rc_deleted;
1038 if ( isset( $this->mAttribs[
'rc_ip'] ) ) {
1040 $n = strpos( $this->mAttribs[
'rc_ip'],
'/' );
1041 if ( $n !==
false ) {
1042 $this->mAttribs[
'rc_ip'] = substr( $this->mAttribs[
'rc_ip'], 0, $n );
1050 $this->mAttribs[
'rc_comment'] = &$comment;
1051 $this->mAttribs[
'rc_comment_text'] = &$comment;
1052 $this->mAttribs[
'rc_comment_data'] =
null;
1055 $this->mAttribs[
'rc_user'] ??
null,
1056 $this->mAttribs[
'rc_user_text'] ??
null,
1057 $this->mAttribs[
'rc_actor'] ??
null
1059 $this->mAttribs[
'rc_user'] =
$user->getId();
1060 $this->mAttribs[
'rc_user_text'] =
$user->getName();
1061 $this->mAttribs[
'rc_actor'] =
$user->getActorId();
1071 if (
$name ===
'rc_comment' ) {
1073 ->getComment(
'rc_comment', $this->mAttribs,
true )->text;
1076 if (
$name ===
'rc_user' ||
$name ===
'rc_user_text' ||
$name ===
'rc_actor' ) {
1078 $this->mAttribs[
'rc_user'] ??
null,
1079 $this->mAttribs[
'rc_user_text'] ??
null,
1080 $this->mAttribs[
'rc_actor'] ??
null
1082 if (
$name ===
'rc_user' ) {
1083 return $user->getId();
1085 if (
$name ===
'rc_user_text' ) {
1086 return $user->getName();
1088 if (
$name ===
'rc_actor' ) {
1089 return $user->getActorId();
1093 return $this->mAttribs[
$name] ??
null;
1110 if ( $this->mAttribs[
'rc_type'] ==
RC_EDIT ) {
1111 $trail =
"curid=" . (int)( $this->mAttribs[
'rc_cur_id'] ) .
1112 "&oldid=" . (int)( $this->mAttribs[
'rc_last_oldid'] );
1114 $trail .=
'&diff=0';
1116 $trail .=
'&diff=' . (int)( $this->mAttribs[
'rc_this_oldid'] );
1134 $old = $this->mAttribs[
'rc_old_len'];
1137 $new = $this->mAttribs[
'rc_new_len'];
1139 if ( $old ===
null || $new ===
null ) {
1150 throw new MWException(
"Attempt to write \"" . $ip .
1151 "\" as an IP address into recent changes" );
1188 Wikimedia\suppressWarnings();
1190 Wikimedia\restoreWarnings();
1192 return $unserializedParams;
1204 if ( is_string(
$tags ) ) {
1205 $this->tags[] =
$tags;
1207 $this->tags = array_merge(
$tags, $this->tags );
getCharacterDifference( $old=0, $new=0)
Returns the change size (HTML).
save( $send=self::SEND_FEED)
Writes the data in this object to the database.
static getQueryInfo()
Return the tables, fields, and join conditions to be selected to create a new recentchanges object.
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
static newFromId( $id)
Static factory method for creation from a given user ID.
const SCHEMA_COMPAT_READ_NEW
array $tags
List of tags to apply.
This is to display changes made to all articles linked in an article.
static newForCategorization( $timestamp, Title $categoryTitle, User $user=null, $comment, Title $pageTitle, $oldRevId, $newRevId, $lastTimestamp, $bot, $ip='', $deleted=0, $added=null)
Constructs a RecentChange object for the given categorization This does not call save() on the object...
static newFromConds( $conds, $fname=__METHOD__, $dbType=DB_REPLICA)
Find the first recent change matching some specific conditions.
$wgShowUpdatedMarker
Show "Updated (since my last visit)" marker in RC view, watchlist and history view for watched pages ...
getPrefixedDBkey()
Get the prefixed database key form.
static record( $rc, $auto=false, User $user=null, $tags=null)
Record a log event for a change being patrolled.
Utility class for creating new RC entries.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
getArticleID( $flags=0)
Get the article ID for this Title from the link cache, adding it if necessary.
static notifyLog( $timestamp, $title, $user, $actionComment, $ip, $type, $action, $target, $logComment, $params, $newId=0, $actionCommentIRC='')
static getEngine( $uri, $params=[])
loadFromRow( $row)
Initialises the members of this object from a mysql row object.
static getChangeTypes()
Get an array of all change types.
reallyMarkPatrolled()
Mark this RecentChange patrolled, without error checking.
static newFromName( $name, $validate='valid')
Static factory method for creation from username.
int $counter
Line number of recent change.
static newFromAnyId( $userId, $userName, $actorId)
Static factory method for creation from an ID, name, and/or actor ID.
static parseToRCType( $type)
Parsing text to RC_* constants.
$wgUseRCPatrol
Use RC Patrolling to check for vandalism (from recent changes and watchlists) New pages and new files...
$wgUseNPPatrol
Use new page patrolling to check new pages on Special:Newpages.
static newCacheUpdateJob()
static newMigration()
Static constructor.
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
parseParams()
Parses and returns the rc_params attribute.
$wgPutIPinRC
Log IP addresses in the recentchanges table; can be accessed only by extensions (e....
getDBkey()
Get the main part with underscores.
namespace and then decline to actually register it file or subcat img or subcat $title
static factory(Title $title)
Create a WikiPage object of the appropriate class for the given title.
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
getNamespace()
Get the namespace index, i.e.
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
null for the wiki Added in
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing & $attribs
static notifyEdit( $timestamp, $title, $minor, $user, $comment, $oldId, $lastTimestamp, $bot, $ip='', $oldSize=0, $newSize=0, $newId=0, $patrol=0, $tags=[])
Makes an entry in the database corresponding to an edit.
$wgRCFeeds
Recentchanges items are periodically purged; entries older than this many seconds will go.
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
static makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
diffLinkTrail( $forceCur)
Gets the end part of the diff URL associated with this object Blank if no diff link should be display...
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
passed in as a query string parameter to the various URLs constructed here(i.e. $prevlink) $ldel you ll need to handle error etc yourself modifying $error and returning true will cause the contents of $error to be echoed at the top of the edit form as wikitext Return true without altering $error to allow the edit to proceed & $editor
$wgUseFilePatrol
Use file patrolling to check new files on Special:Newfiles.
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped true if there is text before this autocomment $auto
if(defined( 'MW_SETUP_CALLBACK')) $fname
Customization point after all loading (constants, functions, classes, DefaultSettings,...
Allows to change the fields on the form that will be generated $name
static newFromId( $rcid)
Obtain the recent change with a given rc_id value.
doMarkPatrolled(User $user, $auto=false, $tags=null)
Mark this RecentChange as patrolled.
$wgLogRestrictions
This restricts log access to those who have a certain right Users without this will not see it in the...
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account incomplete not yet checked for validity & $retval
$wgRCMaxAge
Recentchanges items are periodically purged; entries older than this many seconds will go.
static showCharacterDifference( $old, $new, IContextSource $context=null)
Show formatted char difference.
static markPatrolled( $change, $auto=false, $tags=null)
Mark a given change as patrolled.
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a message
addTags( $tags)
Tags to append to the recent change, and associated revision/log.
getAttribute( $name)
Get an attribute value.
static checkIPAddress( $ip)
static newLogEntry( $timestamp, $title, $user, $actionComment, $ip, $type, $action, $target, $logComment, $params, $newId=0, $actionCommentIRC='', $revId=0, $isPatrollable=false)
unserialize( $serialized)
Represents a title within MediaWiki.
static selectFields()
Return the list of recentchanges fields that should be selected to create a new recentchanges object.
static notifyNew( $timestamp, $title, $minor, $user, $comment, $bot, $ip='', $size=0, $newId=0, $patrol=0, $tags=[])
Makes an entry in the database corresponding to page creation Note: the title object must be loaded w...
static parseFromRCType( $rcType)
Parsing RC_* constants to human-readable test.
$wgRCEngines
Used by RecentChange::getEngine to find the correct engine for a given URI scheme.
static singleton( $wiki=false)
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
static factory(array $params)
static isInRCLifespan( $timestamp, $tolerance=0)
Check whether the given timestamp is new enough to have a RC row with a given tolerance as the recent...
static newFromActorId( $id)
Static factory method for creation from a given actor ID.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults error
notifyRCFeeds(array $feeds=null)
Notify all the feeds about the change.
getPerformer()
Get the User object of the person who performed this change.
This module processes the email notifications when the current page is changed.
if(! $wgDBerrorLogTZ) $wgRequest
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
static addCallableUpdate( $callable, $stage=self::POSTSEND, $dbw=null)
Add a callable update.
static run( $event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
static array $changeTypes
Array of change types.
getParam( $name)
Get a parameter value.
static isIPAddress( $ip)
Determine if a string is as valid IP address or network (CIDR prefix).
isAllowed( $action='')
Internal mechanics of testing a permission.
int $wgActorTableSchemaMigrationStage
Actor table schema migration stage.