Remove Revision::getRevisionText from migrateArchiveText
authorPetr Pchelko <ppchelko@wikimedia.org>
Thu, 19 Sep 2019 17:53:19 +0000 (10:53 -0700)
committerPetr Pchelko <ppchelko@wikimedia.org>
Fri, 20 Sep 2019 19:23:45 +0000 (12:23 -0700)
commitb6dfaa50ad317aa8da0446431ddd6bc5afec9c12
tree5b3b06b40dcde2811dc54be24ea6b297bfada04a
parentb138a9b228ea75814dfad26f4b6fed9360732167
Remove Revision::getRevisionText from migrateArchiveText

The script is used to migrate archive text from pre-1.5 schema.
It's safe it just use the `ar_text` field directly instead of going
to Revision::getRevisionText since migrating this field is the whole
proing of the script. Per execution it checks that the field exists
in the schema, the SQL query reads the field.

We don't need to do `expandBlob` either, cause we already know that
the data is not in external store, thus Revision::decompressData
is enough.

Bug: T198343
Change-Id: Ic838bdf680d73522dd508dd86056eb945535b368
maintenance/migrateArchiveText.php