James D. Forrester
df5eb22f83
Replace uses of DB_MASTER with DB_PRIMARY
...
Just an auto-replace from codesniffer for now.
Change-Id: I5240dc9ac5929d291b0ef1c743ea2bfd3f428266
2021-04-29 09:24:31 -07:00
Umherirrender
5a318bd5bf
Pass function name to database functions (maintenance scripts)
...
Useful for logging
Change-Id: I79fe037abcd74f56c935abc118d706bef0198124
2020-06-07 17:24:10 +00:00
Aaron Schulz
98a4fa1b37
Cleanup various calls to IDatabase::upsert()
...
Change-Id: Ic82154f6f62014f892a64e39b4fb6aed202f32eb
2020-02-27 15:27:29 -08:00
Brad Jorsch
c910b9b43a
maintenance/populateChangeTagDef.php: Handle missing valid_tags table
...
The valid_tags table was added in MW 1.15 and removed in 1.33. If
someone is trying to upgrade from a really old version of MediaWiki,
valid_tags may not exist even though change_tags.ct_tag does.
Bug: T230317
Change-Id: Ib94542878b8d301c1d7f806405ee39838ebc6d4a
2019-08-14 11:57:12 -04:00
Amir Sarabadani
b6c2caf11d
Set default of sleep time in populateChangeTagDef to zero
...
The script already has waitForReplication(), that's good for non-WMF setups
Bug: T206568
Change-Id: I020a4472796eeff2561da6c17a817091d4e9af5a
2018-12-15 17:44:14 +00:00
Amir Sarabadani
02a930d7fb
Drop $wgChangeTagsSchemaMigrationStage
...
Bug: T194163
Change-Id: Ieb6cc60cacf9dd0d86641b1be817249cdce42112
2018-11-28 23:03:41 +01:00
Amir Sarabadani
8ebb1c166b
Add part to update ctd_user_defined in populateChangeTagDef
...
Change-Id: I8fa3fa95b259ed82e78f4c3de0f5e148c3586407
2018-09-11 11:19:57 +02:00
Amir Sarabadani
da9d5c2188
Schema change for reading ct_tag_id instead of ct_tag
...
Adding unique index on ct_tag_id and making indexes on ct_tag non unique
Bug: T193874
Change-Id: I24609c57e47308d1330a97527f4ea374d0d307ba
2018-09-04 19:29:48 +02:00
Amir Sarabadani
3ea30167fb
Add option to populateChangeTagDef not to update the count
...
I need this when I'm picking this up to continue populating
Change-Id: I52c74d3c1c59ee966027d5d9cb1a2bd3cf6dfc7a
2018-08-15 14:15:51 +00:00
Amir Sarabadani
501d31060e
Append new line character to output of populateChangeTagDef.php
...
Right now, I run it in prod and it's basically useless
Change-Id: Ieb11884c3e9243df3058118cf2d581e715892595
2018-07-05 17:11:29 +02:00
Amir Sarabadani
4493944510
Add some output for progress in populateChangeTagDef.php
...
I ran it on beta cluster and all was done without one single line of output
Bug: T193871
Change-Id: I05a7c7827203eb159b5845a874b94d74f5d5e299
2018-06-25 17:38:58 +02:00
Amir Sarabadani
cfa0717d4a
Move lbFactory defintion from construct to execute in populateChangeTagDef
...
It seems the class doesn't load needed classes in construct so we get
Uncaught Error: Class 'MediaWiki\MediaWikiServices' not found
Bug: T193871
Change-Id: I0d6a49232cbc256a34ab49e8a4e41f6cc942fe4b
2018-06-18 18:34:48 +02:00
Amir Sarabadani
f1e450564f
Add maintenance to populate change_tag_def table and ct_tag_id field
...
Bug: T193871
Change-Id: I5e863ffcfad5f2b66fb8d50666494acae3480d1a
2018-06-15 17:57:27 +02:00