aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance
Commit message (Collapse)AuthorAgeFilesLines
* Merge "recountCategories.php: Fix varibale shadowing"jenkins-bot2022-01-241-5/+5
|\
| * recountCategories.php: Fix varibale shadowingAmmarpad2022-01-231-5/+5
| | | | | | | | Change-Id: I9333afad473836c1e3abf2bdd0d8841830a7e523
* | Fix maintenance script generateSchemaChangeSql.php on windowsUmherirrender2022-01-242-2/+14
| | | | | | | | | | | | | | Fix // vs. \ issues in file names outputted in comments on the files Also replace /exte Change-Id: I36a36cce8961fd8373fb995599cb45781f11b35f
* | resetPageRandom.php: Fix --from and --to optionsJayprakash123452022-01-231-2/+2
| | | | | | | | | | | | | | | | These options weren't actually reading the option values, just returning `1`, which would turn into `"19700101000001"`. Bug: T291331 Change-Id: I93e11f18dc81b3875e0d3797e67553f7365ce963
* | Merge "update.php: Avoid passing null to substr"jenkins-bot2022-01-231-1/+1
|\ \
| * | update.php: Avoid passing null to substrAmmarpad2022-01-211-1/+1
| |/ | | | | | | | | Bug: T299696 Change-Id: I63f4ad951efaeeaddbdd615e4f5d3065598b4e8d
* / Explicit order by primary key in DeleteAutoPatrolLogs maintenance scriptUmherirrender2022-01-221-2/+2
|/ | | | | | | | While most rdbms working with this implicit order, postgres can fail sometimes Bug: T195807 Change-Id: I562a9324d846d8ca3c38914e1704d204db3172f4
* Merge "Fix maintenance script generateSchemaChangeSql.php for sqlite"jenkins-bot2022-01-211-1/+1
|\
| * Fix maintenance script generateSchemaChangeSql.php for sqliteUmherirrender2021-12-011-1/+1
| | | | | | | | | | | | | | | | | | When the schema for the content table is generated, there is only one whitespace between __temp__ and content (as tablename), which is not fixed by this hack and produce invalid sql. Changing to use a regex to fix any numbers of whitespaces. Change-Id: Ie8faa773dd3cd25470eba043a40061fa731bb118
* | Merge "maintenance: Add table copying feature to updateCollation.php"jenkins-bot2022-01-191-85/+221
|\ \
| * | maintenance: Add table copying feature to updateCollation.phpTim Starling2022-01-201-85/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add --target-table option, allowing the categorylinks table to be copied to another table while changing the collation. * Add --remote option, which uses RemoteIcuCollation but sets cl_sortkey to the collation name without the remote- prefix. * Use the standard batch size option. * Truncate sort keys at 230 bytes per current schema. Bug: T263437 Change-Id: I5764e4f4c4ef52a065e2dd53e8c626dbf14b4c2d
* | | Merge "rdbms: Remove usage of deprecated function Database::numRows()"jenkins-bot2022-01-191-1/+1
|\ \ \
| * | | rdbms: Remove usage of deprecated function Database::numRows()Amir Sarabadani2022-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | Bug: T286694 Change-Id: I6e34e7cccdeb30022863122d39824c742f6fb236
* | | | Merge "addChangeTag: Ensure system user can create tag"jenkins-bot2022-01-191-1/+3
|\ \ \ \
| * | | | addChangeTag: Ensure system user can create tagLucas Werkmeister2022-01-181-1/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | User::newSystemUser() doesn’t ensure any particular rights on the user (a system user isn’t necessarily a sysop – system user mainly means no login, no email etc.), so unless the MAINTENANCE_SCRIPT_USER was previously granted the managechangetags right via some group, the maintenance script will fail. Wrap the user in an UltimateAuthority (“intended for use in maintenance scripts and tests”, though apparently never before used in maintenance scripts) to ensure that the check in ChangeTags::createTagWithChecks() succeeds. (We don’t want to bypass that method and call ChangeTags::defineTag() directly, because that doesn’t include logging, and ChangeTags::logTagManagementAction() isn’t public.) Change-Id: I0c2d6f1ac6c5b2f41126455ff332af68548b60c5
* | / / Replace remaining usages of IDatabase::fetchObject()Alexander Vorwerk2022-01-194-6/+6
| |/ / |/| | | | | | | | | | | Bug: T299471 Change-Id: I5acae5e72de2f85fd6e68e391297895c86ffb10e
* | | Merge "Allow recountCategories.php to do all 3 modes in one run"jenkins-bot2022-01-181-25/+36
|\ \ \ | |/ / |/| |
| * | Allow recountCategories.php to do all 3 modes in one runKunal Mehta2022-01-171-25/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | recountCategories.php now supports passing `--mode all` to recount pages, files and subcats in one script run rather than requiring it be run three separate times. The internal logic is not really changed, instead it just iterates over each type, processing each one individually. Change-Id: Ib19f0d3051fb525dd9b9f9ed26b69638f24253bf
* | | Merge "try to use 'dump' group for db connections for dumps of page content"jenkins-bot2022-01-171-1/+13
|\ \ \ | |/ / |/| |
| * | try to use 'dump' group for db connections for dumps of page contentAriel T. Glenn2022-01-141-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is in line with the other dump maintenance scripts which rely on the dump group and will fall back to a regular db if no such group is present. Bug: T138208 Change-Id: Ia096ac2801a5528e388672ae4d86c6a3a55b1c73
* | | Merge "BackupDumper: fix default value of --schema-version"jenkins-bot2022-01-141-2/+12
|\ \ \
| * | | BackupDumper: fix default value of --schema-versiondaniel2022-01-131-2/+12
| | | | | | | | | | | | | | | | | | | | Bug: T299174 Change-Id: I7303fada7fc32efa91d45c18cfb581a47a695286
* | | | maintenance: Add --batch-size to sql.phpTim Starling2022-01-131-0/+6
|/ / / | | | | | | | | | | | | | | | | | | | | | Wait for replication after each batch of queries in sql.php, instead of only at the end. Bug: T299095 Change-Id: Ie077e9cec66cb35e2339982638151aa8edd06dc4
* | | Merge "rdbms: Hard-deprecate legacy cruft from introduction of ResultWrapper"jenkins-bot2022-01-121-1/+1
|\ \ \
| * | | rdbms: Hard-deprecate legacy cruft from introduction of ResultWrapperAmir Sarabadani2022-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | Bug: T286694 Change-Id: Ifc58dd478592be49dd55caddfc9aeb536da1e1d6
* | | | Explicit cast TS_UNIX to int for arithmetic operations and int argsUmherirrender2022-01-113-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the called function has a doc of int, it should be cast to be explicit here. Also cast for arithmetic operations to be explicit about the number Change-Id: I905b78dfb66e66443e0e3203488bab5b548db543
* | | | Merge "Move LinksUpdate and LinksDeletionUpdate into the new namespace"jenkins-bot2022-01-101-0/+1
|\ \ \ \
| * | | | Move LinksUpdate and LinksDeletionUpdate into the new namespaceTim Starling2022-01-041-0/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I5cf7a08324d08aa89c23540222ba8eddc1ae2647
* | | | | Merge "Remove old orphans.php script"jenkins-bot2022-01-061-222/+0
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Remove old orphans.php scriptAaron Schulz2021-12-171-222/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This script from ~2005 is not runnable on large wikis, partly redundant given deleteOrphanedRevisions.php, and is pretty scary. It also is one of the few callers of lockTables(). Bug: T294969 Change-Id: I8d4608c51ce83ac2e221a91727959b8c1df13db7
* | | | | Merge "installer: Set "unknown" for default value of *_major_mime in MySQL"jenkins-bot2022-01-041-0/+20
|\ \ \ \ \
| * | | | | installer: Set "unknown" for default value of *_major_mime in MySQLAmir Sarabadani2022-01-031-0/+20
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Follow up to Ic45dc1bce796a0 which added a schema change that mistakenly removes the default value and given that it was done long time ago and the main patch was removed since then, we can simply add a new patch for broken cases. Sqlite and Postgres don't need this change as they didn't get the patch in the first place. Also fixing the nullability of these fields. Bug: T277354 Change-Id: Iced6fc6a7127a33cc171174270eba5cc552c871e
* | | | | Merge "maintenance: Add support for oldimage table metadata refresh"jenkins-bot2022-01-041-16/+26
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | maintenance: Add support for oldimage table metadata refreshAmir Sarabadani2022-01-031-16/+26
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't handle deleted files yet but that can be done in later patches. I have been struggling to find a solution for it. Bug: T298417 Change-Id: I4f33afa92be8b55d6b8f9797cb4d3aa03a37ad79
* | | | abstract schema: Remove unsigned: false from integer typesUmherirrender2021-12-281-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | unsigned false is the default and not needed to be specified in the definition. Change-Id: Ib2df05d2f46e06b101d27d8684c6210053da0170
* | | | abstract schema: Remove length attribute for mwtimestamp typesUmherirrender2021-12-261-20/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The length is definied by the type and not needed to repeat on the definition itself in tables.json Change-Id: I6c79612c4bde39c0eba911b7f9e01e13d20a3eb7
* | | | Merge "schema: Make filearchive.fa_id unsigned"jenkins-bot2021-12-244-1/+496
|\ \ \ \ | |/ / / |/| | |
| * | | schema: Make filearchive.fa_id unsignedUmherirrender2021-12-074-1/+496
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It makes it more consistent with AUTO_INCREMENT PRIMARY KEY columns on other tables. This patch doesn't apply to Sqlite or Postgres. Bug: T297207 Change-Id: I5e58f23ea2441ef93ce7254210158d8094bd9010
* | | | Merge "docs: Fix Doxygen rendering of `@newable` in class comments"jenkins-bot2021-12-151-0/+1
|\ \ \ \ | |_|/ / |/| | |
| * | | docs: Fix Doxygen rendering of `@newable` in class commentsTimo Tijhof2021-12-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This defaulted to plain text which looked out of place. Render it in the same way as `@stable` annotations instead. Change-Id: Ia7cc46fc89ce1f0a4ba6c5e47514cbed92f5c505
* | | | Remove some more comments that literally repeat the codeThiemo Kreuz2021-12-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nothing to learn from these. You can find a longer explanation in the comments in I93751e6. Change-Id: I195aae70fc282b58be5b18160783f27d38605d15
* | | | Merge "Upgrade Vue to the migration build of Vue 3"jenkins-bot2021-12-081-11/+0
|\ \ \ \
| * | | | Upgrade Vue to the migration build of Vue 3Roan Kattouw2021-12-071-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Upgrade Vue to @vue/compat version 3.2.23 * Migrate Vue.createMwApp to Vue 3 API * Add backwards-compatible wrapper emulating Vue 2 behavior for new Vue( { el: '#foo', ... } ) and new Vue( ... ).$mount( '#foo' ) * Make @vue/composition-api an alias for vue, for b/c * Convert resources/src/vue/ to ES6 * Ignore resource/src/vue/ for jsduck, since it doesn't support ES6 * VueComponentParser: Remove check for only one root node Bug: T251974 Co-Authored-By: Lucas Werkmeister <lucas.werkmeister@wikimedia.de> Depends-On: Ica0c0d0d6247383796d39199e50a9aff917f5b53 Change-Id: Ibd618765f962f57984994604c61b1aff9e6a778d
* | | | | Merge "Maintenance.php: Code cleanup to console functions"jenkins-bot2021-12-081-18/+17
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Maintenance.php: Code cleanup to console functionsReedy2021-11-081-18/+17
| |/ / / | | | | | | | | | | | | Change-Id: Ib765ddef6af01727777f9e7fc7db70eaa1c1ee10
* | | | Merge "maintenance: Add --parse-title option to edit.php to parse the title ↵jenkins-bot2021-12-071-1/+12
|\ \ \ \ | |_|/ / |/| | | | | | | input"
| * | | maintenance: Add --parse-title option to edit.php to parse the title inputEd Sanders2021-12-031-1/+12
| |/ / | | | | | | | | | | | | | | | | | | Allows scripts to edit pages that can vary by language, e.g. "{{int:mainpage}}" or target pages using parser variables, e.g. "News_{{CURRENTYEAR}}". Change-Id: I94bd613d34743739c6529f22c1dcccc27acc4e8b
* | | Merge "Drop pr_user from page_restrictions"jenkins-bot2021-12-078-10/+142
|\ \ \
| * | | Drop pr_user from page_restrictionsAmir Sarabadani2021-12-068-10/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not used for 13 years, safe to say it won't be used anytime soon Bug: T199377 Change-Id: Iecf4fb6046699a1758ad2d1dc55a3ee8eb4b0389
* | | | Use LanguageNameUtils constants instead of stringsAlexander Vorwerk2021-12-052-2/+4
|/ / / | | | | | | | | | Change-Id: I8521d00675008da0d7c8c768ab75352212653c66