Handle empty revision table in populateArchiveRevId.php
authorJames Montalvo <edwin.j.montalvo@nasa.gov>
Mon, 10 Sep 2018 19:45:37 +0000 (14:45 -0500)
committerJames D. Forrester <jforrester@wikimedia.org>
Fri, 28 Sep 2018 00:18:14 +0000 (17:18 -0700)
commite49ea91fad5197e16cfc0eb78bf8e4e116fbc906
treeabaaaa3bbe0e556c1f5fa6001f7e934d6597e788
parentb2b516c9f7251e8ace4649023a0c258cb21d8233
Handle empty revision table in populateArchiveRevId.php

Running update.php for new wikis without any revisions yet fails when
update.php attempts to run populateArchiveRevId.php. This problem
does not exist if using the web installer or running
maintenance/install.php, since both of these generate a Main Page
revision. Manually generating a MediaWiki database by sourcing
maintenance/tables.sql does not generate any revisions, and thus is
susceptible to this problem.

Bug: T203982

Change-Id: Ifd78c50fb1e11f82340cd83a10fa903b7c5fc1e7
maintenance/populateArchiveRevId.php