MediaWiki  master
UpdateLogging Class Reference

Maintenance script that upgrade for log_id/log_deleted fields in a replication-safe way. More...

Collaboration diagram for UpdateLogging:

Public Member Functions

 copyExactMatch ( $srcTable, $dstTable, $copyPos)
 
 execute ()
 
 sync ( $srcTable, $dstTable)
 Copy all rows from $srcTable to $dstTable. More...
 

Public Attributes

 $batchSize = 1000
 
IMaintainableDatabase $dbw
 
 $minTs = false
 

Detailed Description

Maintenance script that upgrade for log_id/log_deleted fields in a replication-safe way.

Definition at line 34 of file upgradeLogging.php.

Member Function Documentation

◆ copyExactMatch()

UpdateLogging::copyExactMatch (   $srcTable,
  $dstTable,
  $copyPos 
)

Definition at line 183 of file upgradeLogging.php.

References $ul, as, and serialize().

Referenced by sync().

◆ execute()

UpdateLogging::execute ( )

Definition at line 43 of file upgradeLogging.php.

References $wgDBTableOptions, and(), as, by, DB_MASTER, format, history, is, key, list, logs, of, page, performed, sync(), text, type, user, and will.

◆ sync()

UpdateLogging::sync (   $srcTable,
  $dstTable 
)

Copy all rows from $srcTable to $dstTable.

Parameters
string$srcTable
string$dstTable

Definition at line 133 of file upgradeLogging.php.

References $batch, $batchSize, $minTs, as, copyExactMatch(), null, wfTimestamp(), and wfWaitForSlaves().

Referenced by execute().

Member Data Documentation

◆ $batchSize

UpdateLogging::$batchSize = 1000

Definition at line 40 of file upgradeLogging.php.

Referenced by sync().

◆ $dbw

IMaintainableDatabase UpdateLogging::$dbw

Definition at line 39 of file upgradeLogging.php.

◆ $minTs

UpdateLogging::$minTs = false

Definition at line 41 of file upgradeLogging.php.

Referenced by sync().


The documentation for this class was generated from the following file: