aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/deleteArchivedFiles.inc
Commit message (Collapse)AuthorAgeFilesLines
* Combine deleteArchived{Files,Revisions}.inc into the .php scriptsKevin Israel2015-05-171-84/+0
| | | | | | | | | | | | | Some of deleteArchivedFiles.php and deleteArchivedRevisions.php were split off to deleteArchivedFiles.inc and deleteArchivedRevisions.inc respectively in r62948 (04b2413aacfd) for use in tests. The tests no longer use those methods, so I moved them back and inlined them into execute(). I also did some minor cleanup -- changing direct calls to tableName() and query() to use query builder functions and clarifying/fixing some of the logic that was in deleteArchivedFiles.inc. Change-Id: Ica49dcac18a9c702cffe02e562c6dff48d2d2784
* Avoid warnings for empty file sha1 keysAaron Schulz2014-06-241-0/+4
| | | | | bug: 40362 Change-Id: I19d3b38a121171153875cde8bef4ca34b3e49d67
* Update formatting in maintenance/ (2/4)Siebrand Mazeland2014-04-231-3/+7
| | | | Change-Id: I2b791d3bff0de464b6bdaaeae0622c065389c31c
* Fixed some spacing in maintenance folderumherirrender2013-04-181-1/+1
| | | | | | | Added spaces before if, foreach Added some braces for one line statements Change-Id: I9657f72996358f8c1c154cea1ea97970d973723c
* phpcs: Normalize methods declarations to "[final abstract] [visibility]".Antoine Musso2013-02-191-1/+1
| | | | | | | | | | | | CodeSniffer sniff is: [abstract final] [<visibility>] [static] function As declared by: PSR2.Methods.MethodDeclaration.StaticBeforeVisibility in: https://github.com/wikimedia/mediawiki-tools-codesniffer/blob/master/MediaWiki/ruleset.xml Change-Id: Ifabd289e8668019ed752bdd711b3b43a9c346336
* Add separate fa_sha1 field to filearchive tableumherirrender2012-10-141-2/+7
| | | | | | | | | | | This allows sha1 searches with the api in miser mode for deleted files Added script to populate the rows Adding new field to selects and handle it in all places, where needed Using a 10 byte index for the new field per http://lists.wikimedia.org/pipermail/wikitech-l/2012-September/063429.html Change-Id: Ie54a513fe361202e63df44be44a0fdd91926c974
* use FileRepo api to delete and check for filesJan Gerber2012-07-191-2/+2
| | | | | | | instead of direct file access use FileRepo api, this way the script works for remote backends too. Change-Id: I08c29cec4bc685c422630487b91458d13184fe94
* Improve documentation of maintenance scripts.Alexandre Emsenhuber2012-06-161-1/+7
| | | | Change-Id: I328a3d42a09f2b082ebc153c2f399793e23942d7
* More __METHOD__ in our madnessSam Reed2012-02-241-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/112339
* (bug 26848) deleteArchivedFiles.php deletes db records, but not filesChad Horohoe2011-01-211-3/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/80693
* Followup r69841 add missing t from outputSam Reed2010-07-241-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/69844
* Fix typo in deleteArchivedFiles.incSam Reed2010-07-241-1/+1
| | | | | | | | | Remove unused globals Add missing global Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/69841
* Stylize maintenance folder..Sam Reed2010-05-221-6/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/66751
* * Make tests work better together. Tests are now skipped or marked incomplete.Mark A. Hershberger2010-02-251-0/+62
| | | | | | | * Make it possible to call deleteArchived{Revisions,Files} from within tests to do cleanup. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62948
* Merge maintenance-work branch (now with less errors!):Chad Horohoe2009-08-021-50/+0
| | | | | | | | | | | * Docs have been updated to indicate the standard on how to write maintenance scripts (MW.org docs will follow) Have ported vast majority of maintenance scripts to new format. Remaining ones (mostly FiveUpgrade-related) are a bit more tricky. commandLine.inc is untouched for now. Many have gotten code-style updates as well. Deleted .inc files were only used by their .php counterparts, and have been merged into single files. * (bug 11867) Lock error on redirect table when running orphans.php * (bug 16322) Allow maintenance scripts to accept DB user/pass over input or params * (bug 18566) Maintenance script to un/protect pages * initStats overhaul, now uses class SiteStatsInit. Also fixes bug 18930 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/54225
* Make --delete confirmation actually workAaron Schulz2009-07-201-0/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/53532
* Make sure this commits tooAaron Schulz2009-07-201-0/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/53531
* Update deleteArchivedFiles.inc to use FileRepo (FileStore was removed)Aaron Schulz2009-07-201-29/+17
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/53528
* WARNING: HUGE COMMITAlexandre Emsenhuber2008-05-201-3/+2
| | | | | | | | | | | | | | | | | | Doxygen documentation update: * Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group. * Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file. * Removed some empty comments * Removed some ?> Added following groups: * ExternalStorage * JobQueue * MaintenanceLanguage One more thing: there are still a lot of warnings when generating the doc. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/35098
* Check for hidden imagesAaron Schulz2008-04-011-8/+9
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/32662
* *Fix commentAaron Schulz2007-06-071-1/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22823
* svn:eol-style nativeAntoine Musso2007-05-121-56/+56
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22127
* *nest deletion per row, to avoid racingAaron Schulz2007-05-111-7/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22091
* *Add a script to delete archived imagesAaron Schulz2007-05-101-0/+61
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22090