• Модуль: perfmon
  • Путь к файлу: ~/bitrix/modules/perfmon/lib/sql/column.php
  • Класс: BitrixPerfmonSqlColumn
  • Вызов: Column::getDropDdl
public function getDropDdl($dbType = '')
{
	switch ($dbType)
	{
	case "MYSQL":
		return "ALTER TABLE ".$this->parent->name." DROP ".$this->name;
	case "MSSQL":
		return "ALTER TABLE ".$this->parent->name." DROP COLUMN ".$this->name;
	case "ORACLE":
		return "ALTER TABLE ".$this->parent->name." DROP (".$this->name.")";
	default:
		return "// ".get_class($this).":getDropDdl for database type [".$dbType."] not implemented";
	}
}