TableEditor.php
public function removeKey($key)
    {
        if (is_array($key))
        {
            $keyString = "(" . implode(',', $key) . ")";
        }
        else
        {
            $keyString = "`" . $key . "`";
        }
        
        $query = 
            "ALTER TABLE " . 
            '`' . $this->m_name . '` ' . 
            "DROP INDEX " . $keyString;
        
        $result = $this->m_mysqliConn->query($query);
        return $result;
    }
public function removeKey($key)
    {
        if (is_array($key))
        {
            $keyString = "(" . implode(',', $key) . ")";
        }
        else
        {
            $keyString = "`" . $key . "`";
        }
        
        $query = 
            "ALTER TABLE " . 
            '`' . $this->m_name . '` ' . 
            "DROP INDEX " . $keyString;
        
        $result = $this->m_mysqliConn->query($query);
        return $result;
    }
public function removeKey ( $ key ) { if ( is_array ( $ key ) ) { $ keyString = "(" . implode ( ',' , $ key ) . ")" ; } else { $ keyString = "`" . $ key . "`" ; } $ query = "ALTER TABLE " . '`' . $ this -> m_name . '` ' . "DROP INDEX " . $ keyString ; $ result = $ this -> m_mysqliConn -> query ( $ query ) ; return $ result ; }
Remove a key from the database. This does not remove the field itself.
@param String $key - the name of the field that is currently a key.
@throws Exception
Remove a key from the database . This does not remove the field itself .