File path: dist/twist/Core/Models/Database/TableStructure.model.php
Namespace: Twist\Core\Models\Database
addIndex
— Set a Index, you can have multiple indexes per table. To create a index from more than 1 field pass the second parameter as an array of fields
Name | Description |
---|---|
$strName | n/a |
$mxdColumns | n/a |
[$strComment = null] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strName = 'foo';
$mxdColumns = 'foo-123';
$strComment = null;
//Call the function addIndex with the example vars
$resTableStructure = new \Twist\Core\Models\Database\TableStructure();
$resTableStructure -> addIndex($strName, $mxdColumns, $strComment);