public function renameTable($table, $newName)
    {
        $cmdPromise = $this->createCommand()->renameTable($table, $newName)->execute();
        return $this->execPromise($cmdPromise, "rename table $table to $newName");
    }
public function renameTable($table, $newName)
    {
        $cmdPromise = $this->createCommand()->renameTable($table, $newName)->execute();
        return $this->execPromise($cmdPromise, "rename table $table to $newName");
    }
public function renameTable ( $ table , $ newName ) { $ cmdPromise = $ this -> createCommand ( ) -> renameTable ( $ table , $ newName ) -> execute ( ) ; return $ this -> execPromise ( $ cmdPromise , "rename table $table to $newName" ) ; }
Builds and executes a SQL statement for renaming a DB table.
@param string $table the table to be renamed. The name will be properly quoted by the method.
@param string $newName the new table name. The name will be properly quoted by the method.
@return LazyPromiseInterface
Builds and executes a SQL statement for renaming a DB table .