/** * {@inheritDoc} */ public function dropConstraints(ConnectionInterface $db) { if (empty($this->_constraints)) { return true; } $sql = $this->_schema->dropConstraintSql($db); if (empty($sql)) { return true; } foreach ($sql as $stmt) { $db->execute($stmt)->closeCursor(); } foreach ($this->_constraints as $name => $data) { $this->_schema->dropConstraint($name); } return true; }