Documentation

renameTable

void public
\Bitrix\Main\DB\Connection::renameTable(
 string $currentName,
 string $newName
);

This non-static method renames a table. The table must exist and the new name must be unique within the database.

Parameters

ParameterDescriptionVersion
$currentNameOld table name
$newNameNew table name

Exceptions

Example



© «Bitrix24», 2001-2024
Up