You can add indexes by simple calling Doctrine_Record::option('index', $definition) where $definition is the definition array. The structure of the definition array is as follows:
[   indexName1 => [col1 => [col1-options], ... , colN => [colN-options]
    indexName2 => ...
    indexNameN => ]


An example of adding a simple index to field called 'name':

hasColumn('name', 'string'); } public function setUp() { \$this->option('index', array('myindex' => 'name')); } } ?>"); ?>

An example of adding a multi-column index to field called 'name':

hasColumn('name', 'string'); \$this->hasColumn('code', 'string'); } public function setUp() { \$this->option('index', array('myindex' => array('name', 'code'))); } } ?>"); ?>

An example of adding a multiple indexes on same table:

hasColumn('name', 'string'); \$this->hasColumn('code', 'string'); \$this->hasColumn('age', 'integer'); } public function setUp() { \$this->option('index', array('myindex' => array('name', 'code') 'ageindex' => 'age') ); } } ?>"); ?>