final public function renameTable($table, $to)
    {
        if ($this->adapter->getName() == 'mysql') {
            $command = 'RENAME';
        } else {
            $command = 'ALTER TABLE';
        }

        $sql = sprintf('%s %s TO %s', $command, $table, $to);

        return $this->executeSqlQuery($sql);
    }
final public function renameTable($table, $to)
    {
        if ($this->adapter->getName() == 'mysql') {
            $command = 'RENAME';
        } else {
            $command = 'ALTER TABLE';
        }

        $sql = sprintf('%s %s TO %s', $command, $table, $to);

        return $this->executeSqlQuery($sql);
    }
final public function renameTable ( $ table , $ to ) { if ( $ this -> adapter -> getName ( ) == 'mysql' ) { $ command = 'RENAME' ; } else { $ command = 'ALTER TABLE' ; } $ sql = sprintf ( '%s %s TO %s' , $ command , $ table , $ to ) ; return $ this -> executeSqlQuery ( $ sql ) ; }
Add SQL query

@param string $sql
@return Migration
Add SQL query