* Added $wgJQueryVersion, $wgJQueryMinified and $wgJQueryOnEveryPage (true by
default) to configure loading of jQuery by MediaWiki.
* XmlFunctions.php has been removed. Use the Xml or Html classes as appropriate.
+* Added $wgSQLMode for setting database SQL modes - either performance (null)
+ or other reasons (such as enabling stricter checks)
=== New features in 1.17 ===
* (bug 10183) Users can now add personal styles and scripts to all skins via
/** MySQL table options to use during installation or update */
$wgDBTableOptions = 'ENGINE=InnoDB';
+/**
+ * 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 for some additional fun :-)
+ */
+$wgSQLMode = '';
+
/** Mediawiki schema */
$wgDBmwschema = 'mediawiki';
/** Tsearch2 schema */
if( $wgDBmysql5 ) {
$this->query( 'SET NAMES utf8', __METHOD__ );
}
- // Turn off strict mode
- $this->query( "SET sql_mode = ''", __METHOD__ );
+ // Set SQL mode, default is turning them all off, can be overridden or skipped with null
+ if (is_string($wgSQLMode)) {
+ $this->query( "SET sql_mode = '$wgSQLMode'", __METHOD__ );
+ }
}
// Turn off strict mode if it is on