[MCR] RevisionStore, enable insertions for new schema
authoraddshore <addshorewiki@gmail.com>
Mon, 29 Jan 2018 15:54:02 +0000 (15:54 +0000)
committerAddshore <addshorewiki@gmail.com>
Thu, 14 Jun 2018 13:36:08 +0000 (13:36 +0000)
commit125bf7e44fe4145127c9e19c25d8c0c6dc1a6c3e
treedac4d14df4ebe8a0d85f1ad2a08509ec8967c39a
parente8632ab0f6264851d2115a2e6338c2074b9a9b8c
[MCR] RevisionStore, enable insertions for new schema

Enable inserts to the new MCR db schema in single slot mode only.

TODO:
 - RELEASE NOTES

Notes:
 - When in MIGRATION_WRITE_NEW or greater, deleting and then
 restoring a page will result in different data in the revision table.
 For example, if you delete a page that has text_ids present in the
 revision table and restore it, the text_ids will be blank after.
 - When in MIGRATION_WRITE_BOTH or greater the archive table will
 start to ar_content_model entries where previously it would have been
 given NULL. This is due to the old content schema having NULL in the db
 when the default content model is used, but the new schema will always
 have a value, taken from the content_models table

Note: If259b1e1c49ce was squashed into this change.

Bug: T183488
Bug: T174024
Change-Id: Ic2221da30c8f6ac2ba42720fcd568f2d0ed70534
16 files changed:
includes/DefaultSettings.php
includes/ServiceWiring.php
includes/Storage/RevisionStore.php
includes/Storage/SlotRecord.php
includes/page/WikiPage.php
tests/common/TestsAutoLoader.php
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/includes/RevisionDbTestBase.php
tests/phpunit/includes/RevisionMcrWriteBothDbTest.php [new file with mode: 0644]
tests/phpunit/includes/RevisionTest.php
tests/phpunit/includes/Storage/McrWriteBothRevisionStoreDbTest.php [new file with mode: 0644]
tests/phpunit/includes/Storage/McrWriteBothSchemaOverride.php [new file with mode: 0644]
tests/phpunit/includes/Storage/RevisionStoreDbTestBase.php
tests/phpunit/includes/Storage/RevisionStoreTest.php
tests/phpunit/includes/Storage/SlotRecordTest.php
tests/phpunit/includes/page/WikiPageMcrWriteBothDbTest.php [new file with mode: 0644]