Example #1
0
 /**
  * Drop a trigger.
  *
  * @param  \Apolune\Core\Database\Trigger  $trigger  null
  * @return boolean
  */
 public function drop($trigger = null)
 {
     $name = $trigger instanceof Trigger ? $trigger->name() : $this->name($this->timing, $this->event, $this->table);
     return $this->query->unprepared(sprintf("DROP TRIGGER `%s`;", $name));
 }