public function setEngine($engine)
    {
        $this->_database->exec(
            'ALTER TABLE ' .
            $this->_database->prepareIdentifier($this->_name) .
            ' ENGINE = ' .
            $this->_database->prepareValue($engine, Column::TYPE_VARCHAR)
        );
        // MySQL ignores invalid engine names. Check explicitly.
        // The getEngine() also implicitly updates $_engine.
        if (strcasecmp($this->getEngine(), $engine) != 0) {
            throw new \RuntimeException('Unsupported table engine: ' . $engine);
        }
    }
public function setEngine($engine)
    {
        $this->_database->exec(
            'ALTER TABLE ' .
            $this->_database->prepareIdentifier($this->_name) .
            ' ENGINE = ' .
            $this->_database->prepareValue($engine, Column::TYPE_VARCHAR)
        );
        // MySQL ignores invalid engine names. Check explicitly.
        // The getEngine() also implicitly updates $_engine.
        if (strcasecmp($this->getEngine(), $engine) != 0) {
            throw new \RuntimeException('Unsupported table engine: ' . $engine);
        }
    }
public function setEngine ( $ engine ) { $ this -> _database -> exec ( 'ALTER TABLE ' . $ this -> _database -> prepareIdentifier ( $ this -> _name ) . ' ENGINE = ' . $ this -> _database -> prepareValue ( $ engine , Column :: TYPE_VARCHAR ) ) ; // MySQL ignores invalid engine names. Check explicitly. // The getEngine() also implicitly updates $_engine. if ( strcasecmp ( $ this -> getEngine ( ) , $ engine ) != 0 ) { throw new \ RuntimeException ( 'Unsupported table engine: ' . $ engine ) ; } }
Set table engine
@param string $engine New table engine (MyISAM, InnoDB etc.)
@throws \RuntimeException if $engine is not recognized by the server
Set table engine