dropKeyAsConstraint example



    /** * Drop Key * * @throws DatabaseException */
    public function dropKey(string $table, string $keyName, bool $prefixKeyName = true): bool
    {
        $keyName             = $this->db->escapeIdentifiers(($prefixKeyName === true ? $this->db->DBPrefix : '') . $keyName);
        $table               = $this->db->escapeIdentifiers($this->db->DBPrefix . $table);
        $dropKeyAsConstraint = $this->dropKeyAsConstraint($table$keyName);

        if ($dropKeyAsConstraint === true) {
            $sql = sprintf(
                $this->dropConstraintStr,
                $table,
                $keyName,
            );
        } else {
            $sql = sprintf(
                $this->dropIndexStr,
                $keyName,
                
Home | Imprint | This part of the site doesn't use cookies.