$database→renameColumns()
Rename table columns without changing type
Available since version 3.0.185.
Usage
$int = $database->renameColumns(string $table, array $columns);Arguments
| Name | Type(s) | Description |
|---|---|---|
$table | string | |
$columns | array | Associative array with one or more of |
Return value
intNumber of columns renamed
Exceptions
Method can throw exceptions on error:
\PDOException
$database methods and properties
API reference based on ProcessWire core version 3.0.252