Aaron Schulz
21e71e0235
Use IDatabase type hints in /maintenance
...
Relatedly, move lockTables()/unlockTables() to IMaintainableDatabase
Change-Id: Ib53e9fa948deb2f9a70f0ce16c002613d0060bf9
2017-04-07 23:37:41 +00:00
Matthew Flaschen
490daba99c
populateContentModel: Invalidate content model and revision cache
...
The cache is computed from both the default values and the DB.
If someone visits the page when the wrong default value is there,
it will be cached.
When we populate the DB with the correct value (usually in preparation
for changing the namespace default), we need to invalidate the
potentially broken cache.
Change-Id: I995c0d9fdec529a456762571d5406d0bd0d33aed
2016-11-29 00:32:57 +00:00
Aaron Schulz
30f4b3c103
Replace DatabaseBase => Database in more places
...
Change-Id: If37a7909056bf2c31a8228cbc84f0fbbf5f1c517
2016-09-28 15:53:02 -07:00
Kunal Mehta
6e9b4f0e9c
Convert all array() syntax to []
...
Per wikitech-l consensus:
https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html
Notes:
* Disabled CallTimePassByReference due to false positives (T127163)
Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
2016-02-17 01:33:00 -08:00
Max Semenik
59db24e90b
Use addDescription() instead of accessing mDescription directly
...
Change-Id: I0e2aa83024b8abf5298cfea4b21bf45722ad3103
2016-01-30 01:28:32 -08:00
Reedy
44cebea941
Update wfGetDB calls in Maintenance scripts to use getDB()
...
Change-Id: I9ad6745d84506b736dae94747256caac89715899
2016-01-02 16:58:23 +00:00
Reedy
8e8368ca65
Re-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis
...
Change-Id: I8482f5dd9d79e4946e862b0ac03bd027d62e8646
2015-09-26 17:38:35 +01:00
Kunal Mehta
ee64052eaf
Add maintenance script to populate page,revision,archive.*_content_* fields
...
Bug: T103388
Co-Authored-By: Roan Kattouw <roan.kattouw@gmail.com>
Change-Id: I65ab629d25c394751c05ce6b5c1a27464893896d
2015-06-30 20:20:55 +00:00