• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/db/connection.php
  • Класс: BitrixMainDBConnection
  • Вызов: Connection::renameTable
public function renameTable($currentName, $newName);

/**
 * Drops a column. This column must exist and must be not the part of primary constraint.
 * and must be not the last one in the table.
 *
 * @param string $tableName Name of the table to which column will be dropped.
 * @param string $columnName Name of the column to be dropped.
 *
 * @return void
 * @throws SqlQueryException
 */
public function dropColumn($tableName, $columnName)
{
	$this->query('ALTER TABLE '.$this->getSqlHelper()->quote($tableName).' DROP COLUMN '.$this->getSqlHelper()->quote($columnName));
}