public function getDropForeignKeyDDL(ForeignKey $fk)
    {
        if ($fk->isSkipSql()) {
            return;
        }
        $pattern = "
ALTER TABLE %s DROP CONSTRAINT %s;
";

        return sprintf($pattern,
            $this->quoteIdentifier($fk->getTable()->getName()),
            $this->quoteIdentifier($fk->getName())
        );
    }
public function getDropForeignKeyDDL(ForeignKey $fk)
    {
        if ($fk->isSkipSql()) {
            return;
        }
        $pattern = "
ALTER TABLE %s DROP CONSTRAINT %s;
";

        return sprintf($pattern,
            $this->quoteIdentifier($fk->getTable()->getName()),
            $this->quoteIdentifier($fk->getName())
        );
    }
public function getDropForeignKeyDDL ( ForeignKey $ fk ) { if ( $ fk -> isSkipSql ( ) ) { return ; } $ pattern = "
ALTER TABLE %s DROP CONSTRAINT %s;
" ; return sprintf ( $ pattern , $ this -> quoteIdentifier ( $ fk -> getTable ( ) -> getName ( ) ) , $ this -> quoteIdentifier ( $ fk -> getName ( ) ) ) ; }
Builds the DDL SQL to drop a foreign key.

@param ForeignKey $fk

@return string
Builds the DDL SQL to drop a foreign key .