$databaserenameColumn()

Rename a table column without changing type

Available since version 3.0.185.

Usage

$bool = $database->renameColumn(string $table, string $oldName, string $newName);

Arguments

NameType(s)Description
$tablestring
$oldNamestring
$newNamestring

Return value

bool

Exceptions

Method can throw exceptions on error:

  • \PDOException


$database methods and properties

API reference based on ProcessWire core version 3.0.251