- Since: 3.1
- Description: Hook to add additional table indices.
- Reference class:
Installer.php
When using this hook, please make sure you understand the implications of modifying the standard table definition (e.g add auxiliary indices) which are not part of the core declaration and may alter performance expectations.
Signature
use Hooks;
Hooks::register( 'SMW::SQLStore::Installer::BeforeCreateTablesComplete', function( array $tables, $messageReporter ) {
} );
See also
- https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/docs/examples/hook.sqlstore.installer.beforecreatetablescomplete.md "`hook.sqlstore.installer.beforecreatetablescomplete`" contains an example on how to modify table definitions (e.g. adding additional indices)