Manual:$wgAllowSchemaUpdates

Details
Enable/disable upgrading via update.php. If this is set to false, the script must be run with   to execute schema updates.