src/Phinx/Db/Adapter/SQLiteAdapter.php
protected function getIndexSqlDefinition(Table $table, Index $index)
    {
        if ($index->getType() === Index::UNIQUE) {
            $def = 'UNIQUE INDEX';
        } else {
            $def = 'INDEX';
        }
        if (is_string($index->getName())) {
            $indexName = $index->getName();
        } else {
            $indexName = $table->getName() . '_';
            foreach ($index->getColumns() as $column) {
                $indexName .= $column . '_';
            }
            $indexName .= 'index';
        }
        $def .= ' `' . $indexName . '`';

        return $def;
    }
protected function getIndexSqlDefinition(Table $table, Index $index)
    {
        if ($index->getType() === Index::UNIQUE) {
            $def = 'UNIQUE INDEX';
        } else {
            $def = 'INDEX';
        }
        if (is_string($index->getName())) {
            $indexName = $index->getName();
        } else {
            $indexName = $table->getName() . '_';
            foreach ($index->getColumns() as $column) {
                $indexName .= $column . '_';
            }
            $indexName .= 'index';
        }
        $def .= ' `' . $indexName . '`';

        return $def;
    }
protected function getIndexSqlDefinition ( Table $ table , Index $ index ) { if ( $ index -> getType ( ) === Index :: UNIQUE ) { $ def = 'UNIQUE INDEX' ; } else { $ def = 'INDEX' ; } if ( is_string ( $ index -> getName ( ) ) ) { $ indexName = $ index -> getName ( ) ; } else { $ indexName = $ table -> getName ( ) . '_' ; foreach ( $ index -> getColumns ( ) as $ column ) { $ indexName .= $ column . '_' ; } $ indexName .= 'index' ; } $ def .= ' `' . $ indexName . '`' ; return $ def ; }
Gets the SQLite Index Definition for an Index object.

@param \Phinx\Db\Table\Table $table Table
@param \Phinx\Db\Table\Index $index Index
@return string
Gets the SQLite Index Definition for an Index object .