public function changeEngine($engine)
    {
        $allowed_engines = array(
            self::ENGINE_INNODB,
            self::ENGINE_MYISAM
        );
        
        if (!in_array($engine, $allowed_engines))
        {
            throw new \Exception('Unrecognized engine: ' . $engine);
        }
        
        $query = 
            "ALTER TABLE `" . $this->m_name . "` " .
            "ENGINE=" . $engine;
        
        $result = $this->m_mysqliConn->query($query);
        return $result;
    }