/**
 * @param string $sTableName
 * @param string $sColumnName
 */
function dropColumn($sTableName, $sColumnName)
{
    if (Yii::app()->db->getDriverName() == 'mssql' || Yii::app()->db->getDriverName() == 'sqlsrv' || Yii::app()->db->getDriverName() == 'dblib') {
        dropDefaultValueMSSQL($sColumnName, $sTableName);
    }
    Yii::app()->db->createCommand()->dropColumn($sTableName, $sColumnName);
}
function dropColumn($sTableName, $sColumnName)
{
    $sDBDriverName = Yii::app()->db->getDriverName();
    if ($sDBDriverName == 'mysqli') {
        $sDBDriverName = 'mysql';
    }
    if ($sDBDriverName == 'sqlsrv' || $sDBDriverName == 'dblib') {
        $sDBDriverName = 'mssql';
    }
    if ($sDBDriverName == 'mssql') {
        dropDefaultValueMSSQL($sColumnName, $sTableName);
    }
    Yii::app()->db->createCommand()->dropColumn($sTableName, $sColumnName);
}