mediawiki-extensions-AbuseF.../maintenance
Daimona Eaytoy 54512dd124 Fix more inconsistencies in scripts for logging entries
This includes a bunch of improvements.

In addMissingLoggingEntries:
 - Don't access mDescription directly
 - Build a ManualLogEntry instead of stuffing data in the DB

In fixOldLogEntries:
 - Fix entries having log_page = NULL instead of 0 due to
 addMissingLoggingEntries skipping that field
 - Fix entries having log_deleted = afh_deleted caused by
 addMissingLoggingEntries -- those are completely unrelated
 - Add batching, controlled by log_id, with default size of 500
 - Use Database::strreplace to have a single UPDATE per batch, instead
 of one per row.
 - In dry run, when checking rows to update, exclude the rows that
 would've been deleted in the first phase.

Bug: T228655
Change-Id: I885dba3f0772633d843b8a55e483047b169dc9ba
2020-02-03 15:30:07 +00:00
..
addMissingLoggingEntries.php Fix more inconsistencies in scripts for logging entries 2020-02-03 15:30:07 +00:00
fixOldLogEntries.php Fix more inconsistencies in scripts for logging entries 2020-02-03 15:30:07 +00:00
normalizeThrottleParameters.php Fix query in normalizeThrottleParameters 2019-07-05 18:46:36 +02:00
purgeOldLogIPData.php Replace deprecated wfWaitForSlaves 2019-03-29 11:01:37 +01:00