/** * Adds the specified index to a database table. * * @param Table $table Table * @param Index $index Index * @return void */ public function addIndex(Table $table, Index $index) { $this->adapter->addIndex($table, $index); }
/** * Adds the specified index to a database table. * * @param TableMigrationInterface $table TableMigrationInterface * @param IndexMigrationInterface $index Index * * @return TableMigrationInterface */ public function addIndex(TableMigrationInterface $table, IndexMigrationInterface $index) { $this->adapter->addIndex($table, $index); return $this; }