Don't use new MCR schema without using DB
authorAryeh Gregor <ayg@aryeh.name>
Tue, 13 Aug 2019 07:55:48 +0000 (10:55 +0300)
committerAryeh Gregor <ayg@aryeh.name>
Tue, 13 Aug 2019 14:05:24 +0000 (17:05 +0300)
commita3e8e22f9d89a3582653d4de3f78fec47b9676c0
tree5478ac03fee58766ffa9e7df88e8036fde664c0e
parent1b4f0f26627f0a29e3e14b74cfea4d2ea57830f1
Don't use new MCR schema without using DB

If $wgContentHandlerUseDB is false and
$wgMultiContentRevisionSchemaMigrationStage is not SCHEMA_COMPAT_OLD,
RevisionStoreFactory::getRevisionStore() throws. This is coming up in
some seemingly unrelated code changes, perhaps due to access of stale
service objects, but I'm not sure because I can't reproduce locally. So
this is a shot in the dark to fix it.

Change-Id: Id29a62e1f537fa1b2016aac396773b728e238cda
tests/phpunit/includes/MergeHistoryTest.php
tests/phpunit/includes/MovePageTest.php
tests/phpunit/includes/TitleTest.php