Manual:$wgSQLMode

Details
SQL Mode - default is turning off all modes, including strict, if set.
 * null can be used to skip the setting for performance reasons and assume DBA has done his best job.
 * String override can be used to set any mode