* Add include for AdminSettings.php to allow table creation and deletion. This allow...
authorJerome Jamnicky <jeronim@users.mediawiki.org>
Mon, 19 Apr 2004 12:30:24 +0000 (12:30 +0000)
committerJerome Jamnicky <jeronim@users.mediawiki.org>
Mon, 19 Apr 2004 12:30:24 +0000 (12:30 +0000)
commita789d32563bbe018d742d1ce52e17cc1419924b0
tree7c9d1018f79c6200bfa5843d36ed977d58192fde
parenta6d18de13c73cc5953258351481eaf0186d85f62
* Add include for AdminSettings.php to allow table creation and deletion.  This allows the script to work on my test system at least, but the include should probably be added to commandLine.inc before release.
* Use the Database class for operations instead of wfQuery() et al, where appropriate, so that $wgDBadminuser and $wgDBadminpass can be used.
* Drop temporary table and/or backup links table if already existing, when appropriate.
* Optional progress reporting of links table conversion and reading of the cur table.
* Read and write the 2 links tables in chunks of 1000 rows; this is faster than reading and writing rows 1 by 1, and uses much less RAM than reading the entire links table into RAM.

For use when running the script on multiple processors and operating on the same DB (e.g. when doing the conversion at Wikipedia):
* Options to enable/disable creating the temp table and overwriting the old links table.
* $initialRowOffset
* $finalRowOffset (not implemented yet)
maintenance/convertLinks.php