Skip to main content
Version: Fegg 5.x (next)

Model::dropIndex

Execute Drop index

Description​

public void Model::dropIndex( string $index )

Drops an index. Throws Fegg\Database\QueryException when the query fails.

Arguments​

NameData typeDefaultRemarks
$indexstringIndex name

Example​

Controller
$model = new Model(true, array(
'table' => 'sample',
));

// Drop Index "sample_title"
$model->dropIndex('sample_title');