protected function _getFKConstraint(Constraint\ForeignKey $cons)
    {
        $onDelete = '';
        if ($cons->getOnDelete()) {
            $onDelete = " ON DELETE {$cons->getOnDelete()}";
        }
        $onUpdated = '';
        if ($cons->getOnUpdate()) {
            $onUpdated = " ON UPDATE {$cons->getOnUpdate()}";
        }
        return sprintf(
            'CONSTRAINT %s FOREIGN KEY (%s) REFERENCES %s(%s)%s%s',
            $cons->getName(),
            $cons->getColumn(),
            $cons->getReferenceTable(),
            $cons->getReferenceColumn(),
            $onDelete,
            $onUpdated
        );
    }