/**
* @param array|string $field
*
* @return false|string|string[]
*/
protected function _alterTable(string
$alterType, string
$table,
$field) { // Handle DROP here
if ($alterType === 'DROP'
) { // check if fields are part of any indexes
$indexData =
$this->db->
getIndexData($table);
foreach ($indexData as $index) { if (is_string($field)) { $field =
explode(',',
$field);
} $fld =
array_intersect($field,
$index->fields
);
// Drop index if field is part of an index
if (!
empty($fld)) { $this->
_dropIndex($table,
$index);
}