Use integers for content_model and content_format.
authordaniel <daniel.kinzler@wikimedia.de>
Sun, 13 May 2012 22:02:29 +0000 (00:02 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 14 May 2012 08:22:52 +0000 (10:22 +0200)
commitcbc2014b2d0532202fb7858dc640b957715cd403
treea70b869edcc80c9b0b21a1d4c1d0a72e8c12abc9
parent060b6c74c63023bcb3ea8dba8c62a1c9719f8228
Use integers for content_model and content_format.

Representing content_model and content_format as integers in the
database was suggested by Asher mainly to save space.

This change entails some refactoring and renaming, but no big
change in logic.
33 files changed:
docs/hooks.txt
includes/Content.php
includes/ContentHandler.php
includes/DefaultSettings.php
includes/Defines.php
includes/EditPage.php
includes/Export.php
includes/Import.php
includes/Revision.php
includes/Title.php
includes/WikiPage.php
includes/actions/RawAction.php
includes/api/ApiComparePages.php
includes/specials/SpecialComparePages.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.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/tables.sql
tests/phpunit/includes/ContentHandlerTest.php
tests/phpunit/includes/CssContentTest.php
tests/phpunit/includes/JavascriptContentTest.php
tests/phpunit/includes/RevisionStorageTest.php
tests/phpunit/includes/RevisionStorageTest_ContentHandlerUseDB.php
tests/phpunit/includes/RevisionTest.php
tests/phpunit/includes/TitleMethodsTest.php
tests/phpunit/includes/WikiPageTest.php
tests/phpunit/includes/WikiPageTest_ContentHandlerUseDB.php
tests/phpunit/includes/WikitextContentHandlerTest.php
tests/phpunit/includes/WikitextContentTest.php