fuel/core — pull request #557 by thomasedwards (2011-10-10 01:21:04+00:00)
Title: Added create_index and drop_index functions to DBUtil class

I couldn’t find this anywhere and it’s often something you add as the project grows, so it’s probably better off being completely separate to ```create_table()```.

Added two functions:

```
create_index($table, $field, [ $type ] )
```

```$type``` might be ```unique``` or ```fulltext```.

```
drop_index($table, $field)
```

Pretty self explanatory.

It gives the index name the same name as the field.