Last modified: 2012-10-16 16:41:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42982, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40982 - Handle when $wgContentHandlerUseDB=false changed to $wgContentHandlerUseDB=true
Handle when $wgContentHandlerUseDB=false changed to $wgContentHandlerUseDB=true
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
ContentHandler (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-12 15:20 UTC by Aude
Modified: 2012-10-16 16:41 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Aude 2012-10-12 15:20:26 UTC
Not a high priority now, but would be nice....

If I have $wgContentHandlerUseDB = false now, but later decide to enable it, it could be nice to convert pages like JS and CSS pages to the appropriate content models.  This could be either a script and/or on saving / purging a page.

In my database, my JS page retains NULL content format and model in the page and revision tables.
Comment 1 Daniel Kinzler 2012-10-15 13:26:14 UTC
NULL means "the default". It is also used when $wgContentHandlerUseDB is true, to preserve space. We could have a third mode, $wgAlwaysStoreContentModelInDB or whatever, that would cause the model to always be made explicit in the database. This would make the wiki robust against changing a namespace's default content model. But it would also use a lot of space for very redundant data (in wikipedia's case, a dozen million repetitions of the string "wikitext").

If you want such an explicit mode, please change the description accordingly. Otherwise, I'll close at wontfix.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links