Creates a portable index on a table.
public createIndex ( string $table, string $name, boolean $unique = false, array $cols = null ) : void | ||
$table | string | The name of the table for the index. |
$name | string | The name of the index. |
$unique | boolean | Whether or not the index is unique. |
$cols | array | The columns in the index. If empty, uses the $name parameters as the column name. |
Résultat | void |