source/Spiral/ORM/Schemas/Definitions/IndexDefinition.php
public function getName(): string
    {
        if (!empty($this->name)) {
            return $this->name;
        }

        $name = ($this->isUnique() ? 'unique_' : 'index_') . join('_', $this->getColumns());

        return strlen($name) > 64 ? md5($name) : $name;
    }
public function getName(): string
    {
        if (!empty($this->name)) {
            return $this->name;
        }

        $name = ($this->isUnique() ? 'unique_' : 'index_') . join('_', $this->getColumns());

        return strlen($name) > 64 ? md5($name) : $name;
    }
public function getName ( ) : string { if ( ! empty ( $ this -> name ) ) { return $ this -> name ; } $ name = ( $ this -> isUnique ( ) ? 'unique_' : 'index_' ) . join ( '_' , $ this -> getColumns ( ) ) ; return strlen ( $ name ) > 64 ? md5 ( $ name ) : $ name ; }
Generate unique index name.

@return string
Generate unique index name .