Manual:PopulateContentModel.php

Details
populateContentModel.php file is a maintenance>Special:MyLanguage/Manual:Maintenance scripts|maintenance script to populate the various fields that describe the model>Special:MyLanguage/Manual:ContentHandler|content model of pages and revisions.

It can populate the fields   from page,   and   from revision, and   and   from <tvar|archivetable>archive</>.

Usage
php maintenance/populateContentModel.php --ns=1 --table=page