MediaWiki fundraising/REL1_35
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

 execute ()
 

Public Attributes

 $batchSize = 1000
 
Database $dbw
 
 $minTs = false
 

Private Member Functions

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

Detailed Description

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

Definition at line 35 of file upgradeLogging.php.

Member Function Documentation

◆ copyExactMatch()

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

Definition at line 187 of file upgradeLogging.php.

References serialize().

Referenced by sync().

◆ execute()

UpdateLogging::execute ( )

Definition at line 44 of file upgradeLogging.php.

References $wgDBTableOptions, DB_MASTER, sync(), and wfGetDB().

◆ sync()

UpdateLogging::sync ( $srcTable,
$dstTable )
private

Copy all rows from $srcTable to $dstTable.

Parameters
string$srcTable
string$dstTable

Definition at line 136 of file upgradeLogging.php.

References $batchSize, $minTs, copyExactMatch(), and wfTimestamp().

Referenced by execute().

Member Data Documentation

◆ $batchSize

UpdateLogging::$batchSize = 1000

Definition at line 41 of file upgradeLogging.php.

Referenced by sync().

◆ $dbw

Database UpdateLogging::$dbw

Definition at line 40 of file upgradeLogging.php.

◆ $minTs

UpdateLogging::$minTs = false

Definition at line 42 of file upgradeLogging.php.

Referenced by sync().


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