Manual:$wgAllowSchemaUpdates

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