src/Schema/AbstractTable.php
protected function createIdentifier(string $type, array $columns): string
    {
        $name = $this->getName() . '_' . $type . '_' . join('_', $columns) . '_' . uniqid();

        if (strlen($name) > 64) {
            //Many DBMS has limitations on identifier length
            $name = md5($name);
        }

        return $name;
    }
protected function createIdentifier(string $type, array $columns): string
    {
        $name = $this->getName() . '_' . $type . '_' . join('_', $columns) . '_' . uniqid();

        if (strlen($name) > 64) {
            //Many DBMS has limitations on identifier length
            $name = md5($name);
        }

        return $name;
    }
protected function createIdentifier ( string $ type , array $ columns ) : string { $ name = $ this -> getName ( ) . '_' . $ type . '_' . join ( '_' , $ columns ) . '_' . uniqid ( ) ; if ( strlen ( $ name ) > 64 ) { //Many DBMS has limitations on identifier length $ name = md5 ( $ name ) ; } return $ name ; }
Generate unique name for indexes and foreign keys.

@param string $type
@param array  $columns

@return string
Generate unique name for indexes and foreign keys .