[bug 37746] string ids for content model and format.
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 25 Jun 2012 21:30:51 +0000 (23:30 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Tue, 26 Jun 2012 13:56:06 +0000 (15:56 +0200)
commit906a1ba51f149d659e270597e4b964cc8c550357
treeff447bf480029ba2850b202ce7abbd5603faaeee
parent436b2d37ade1bd25f117eddbd00c9cdff95e727e
[bug 37746] string ids for content model and format.

The content model is stored as a varbinary(32), the format
as varbinary(64).

If the standard model resp. format is used, null is written
to the database instead of the actual id, saving space.

Change-Id: I32659b49a9ad3cb8ecae9019562cff7de42b65f9
22 files changed:
includes/Content.php
includes/ContentHandler.php
includes/DefaultSettings.php
includes/Defines.php
includes/Export.php
includes/Import.php
includes/Revision.php
includes/Title.php
includes/WikiPage.php
includes/api/ApiEditPage.php
includes/api/ApiQueryRevisions.php
includes/cache/LinkCache.php
maintenance/archives/patch-archive-ar_content_format.sql
maintenance/archives/patch-archive-ar_content_model.sql
maintenance/archives/patch-page-page_content_model.sql
maintenance/archives/patch-revision-rev_content_format.sql
maintenance/archives/patch-revision-rev_content_model.sql
maintenance/storage/drop_content_model_info.sql [new file with mode: 0644]
tests/phpunit/includes/ContentHandlerTest.php
tests/phpunit/includes/RevisionTest.php
tests/phpunit/maintenance/DumpTestCase.php
tests/phpunit/maintenance/backupTextPassTest.php