Beispiel #1
0
 /**
  * Drop needed foreign keys.
  *
  * @return $this
  */
 protected function dropForeigns()
 {
     foreach ($this->comparator->droppedForeigns() as $foreign) {
         $this->logger()->debug("Dropping foreign key [{statement}] from table {table}.", ['statement' => $foreign->sqlStatement(), 'table' => $this->getName(true)]);
         $this->commander->dropForeign($this, $foreign);
     }
     return $this;
 }