_dropKeyAsConstraint example

return false;
        }

        return $this->db->query($sql);
    }

    /** * Checks if if key needs to be dropped as a constraint. */
    protected function dropKeyAsConstraint(string $table, string $constraintName): bool
    {
        $sql = $this->_dropKeyAsConstraint($table$constraintName);

        if ($sql === '') {
            return false;
        }

        return $this->db->query($sql)->getResultArray() !== [];
    }

    /** * Constructs sql to check if key is a constraint. */
    
Home | Imprint | This part of the site doesn't use cookies.