Solar_Sql_Adapter::createIndex()
public
void
Solar_Sql_Adapter::createIndex
( string $table
, string $name
, bool $unique = false
, array $cols = NULL
)
Creates a portable index on a table.
Parameters
(string)
$table
: The name of the table for the index.(string)
$name
: The name of the index.(bool)
$unique
: Whether or not the index is unique.(array)
$cols
: The columns in the index. If empty, uses the $name parameters as the column name.
Returns
(void)
Description
Creates a portable index on a table.