src/Core/Migration/AbstractQuery.php
protected static function _columnExists($sTable, $sColumn)
    {
        $oConfig = Registry::getConfig();
        $sDbName = $oConfig->getConfigParam('dbName');
        $sSql = 'SELECT 1
                    FROM information_schema.COLUMNS
                    WHERE
                        TABLE_SCHEMA = ?
                    AND TABLE_NAME = ?
                    AND COLUMN_NAME = ?';

        $oDb = DatabaseProvider::getDb();

        return (bool)$oDb->getOne($sSql, array($sDbName, $sTable, $sColumn));
    }
protected static function _columnExists($sTable, $sColumn)
    {
        $oConfig = Registry::getConfig();
        $sDbName = $oConfig->getConfigParam('dbName');
        $sSql = 'SELECT 1
                    FROM information_schema.COLUMNS
                    WHERE
                        TABLE_SCHEMA = ?
                    AND TABLE_NAME = ?
                    AND COLUMN_NAME = ?';

        $oDb = DatabaseProvider::getDb();

        return (bool)$oDb->getOne($sSql, array($sDbName, $sTable, $sColumn));
    }
protected static function _columnExists ( $ sTable , $ sColumn ) { $ oConfig = Registry :: getConfig ( ) ; $ sDbName = $ oConfig -> getConfigParam ( 'dbName' ) ; $ sSql = 'SELECT 1
                    FROM information_schema.COLUMNS
                    WHERE
                        TABLE_SCHEMA = ?
                    AND TABLE_NAME = ?
                    AND COLUMN_NAME = ?' ; $ oDb = DatabaseProvider :: getDb ( ) ; return ( bool ) $ oDb -> getOne ( $ sSql , array ( $ sDbName , $ sTable , $ sColumn ) ) ; }
Column exists in specific table?

@param string $sTable Table name
@param string $sColumn Column name

@return bool
Column exists in specific table?