src/Builder/TriggersBuilder.php
private function triggerExists($trigger_name)
    {
        if ($triggers = $this->getConnection()->execute('SHOW TRIGGERS', $trigger_name)) {
            foreach ($triggers as $trigger) {
                if ($trigger['Trigger'] == $trigger_name) {
                    return true;
                }
            }
        }

        return false;
    }
private function triggerExists($trigger_name)
    {
        if ($triggers = $this->getConnection()->execute('SHOW TRIGGERS', $trigger_name)) {
            foreach ($triggers as $trigger) {
                if ($trigger['Trigger'] == $trigger_name) {
                    return true;
                }
            }
        }

        return false;
    }
private function triggerExists ( $ trigger_name ) { if ( $ triggers = $ this -> getConnection ( ) -> execute ( 'SHOW TRIGGERS' , $ trigger_name ) ) { foreach ( $ triggers as $ trigger ) { if ( $ trigger [ 'Trigger' ] == $ trigger_name ) { return true ; } } } return false ; }
Check if trigger exists.

@param  string $trigger_name
@return bool
Check if trigger exists .