Function DatabaseConnector->create_index
Definitions
sources/database.php
- Add an index to a table without disturbing the contents, after the table has been created.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$table_name | ID_TEXT | required parameter | N/A | N/A | The table name |
$index_name | ID_TEXT | required parameter | N/A | N/A | The index name |
$fields | array | required parameter | N/A | N/A | The fields |
$unique_key_fields | ?string | Null | N/A | N/A | Comma-separated names of the unique key field for the table (null: lookup) |
$skip_fulltext_key_check | boolean | False | N/A | N/A | Whether to skip checking if keys are appropriate for any auto-created fulltext indices |