src/Attribute/BaseSimple.php
public function renameColumn($strNewColumnName)
    {
        $this->tableManipulator->checkColumnName($strNewColumnName);

        $schemaManager = $this->connection->getSchemaManager();
        $columns       = $schemaManager->listTableIndexes($this->getMetaModel()->getTableName());

        if ($this->getColName() && isset($columns[$this->getColName()])) {
            $this->tableManipulator->renameColumn(
                $this->getMetaModel()->getTableName(),
                $this->getColName(),
                $strNewColumnName,
                $this->getSQLDataType()
            );
        } else {
            $strBackupColName = $this->getColName();
            $this->set('colname', $strNewColumnName);
            $this->createColumn();
            $this->set('colname', $strBackupColName);
        }
    }
public function renameColumn($strNewColumnName)
    {
        $this->tableManipulator->checkColumnName($strNewColumnName);

        $schemaManager = $this->connection->getSchemaManager();
        $columns       = $schemaManager->listTableIndexes($this->getMetaModel()->getTableName());

        if ($this->getColName() && isset($columns[$this->getColName()])) {
            $this->tableManipulator->renameColumn(
                $this->getMetaModel()->getTableName(),
                $this->getColName(),
                $strNewColumnName,
                $this->getSQLDataType()
            );
        } else {
            $strBackupColName = $this->getColName();
            $this->set('colname', $strNewColumnName);
            $this->createColumn();
            $this->set('colname', $strBackupColName);
        }
    }
Renames the underlying database structure for this field.

@param string $strNewColumnName The new column name.

@return void