src/Db/Migration.php
public function renameColumn($table, $name, $newName)
    {
        $cmdPromise = $this->createCommand()->renameColumn($table, $name, $newName)->execute();
        return $this->execPromise($cmdPromise, "rename column $name in table $table to $newName");
    }
public function renameColumn($table, $name, $newName)
    {
        $cmdPromise = $this->createCommand()->renameColumn($table, $name, $newName)->execute();
        return $this->execPromise($cmdPromise, "rename column $name in table $table to $newName");
    }
Builds and executes a SQL statement for renaming a column.
@param string $table the table whose column is to be renamed. The name will be properly quoted by the method.
@param string $name the old name of the column. The name will be properly quoted by the method.
@param string $newName the new name of the column. The name will be properly quoted by the method.
@return LazyPromiseInterface