TableEditor.php
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;
    }
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;
    }
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 ; }
Change the tables engine to something else. Please make use of this classes constants
when providing the engine parameter.
@param String $engine - the name of the engine to change to.
@return type
@throws Exception
Change the tables engine to something else . Please make use of this classes constants when providing the engine parameter .