src/Core/Migration/AbstractQuery.php
protected static function _tableExists($sTable)
    {
        $oConfig = Registry::getConfig();
        $sDbName = $oConfig->getConfigParam('dbName');
        $sQuery = "
            SELECT 1
            FROM information_schema.tables
            WHERE table_schema = ?
            AND table_name = ?
        ";

        return (bool)DatabaseProvider::getDb()->getOne($sQuery, array($sDbName, $sTable));
    }
protected static function _tableExists($sTable)
    {
        $oConfig = Registry::getConfig();
        $sDbName = $oConfig->getConfigParam('dbName');
        $sQuery = "
            SELECT 1
            FROM information_schema.tables
            WHERE table_schema = ?
            AND table_name = ?
        ";

        return (bool)DatabaseProvider::getDb()->getOne($sQuery, array($sDbName, $sTable));
    }
protected static function _tableExists ( $ sTable ) { $ oConfig = Registry :: getConfig ( ) ; $ sDbName = $ oConfig -> getConfigParam ( 'dbName' ) ; $ sQuery = "
            SELECT 1
            FROM information_schema.tables
            WHERE table_schema = ?
            AND table_name = ?
        " ; return ( bool ) DatabaseProvider :: getDb ( ) -> getOne ( $ sQuery , array ( $ sDbName , $ sTable ) ) ; }
Table exists in database?

@param string $sTable Table name

@return bool
Table exists in database?