Changes between Version 1 and Version 2 of TracUpgrade


Ignore:
Timestamp:
09/26/06 13:01:34 (18 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracUpgrade

    v1 v2  
    1414Get the new version of Trac, either by downloading an offical release package or by checking it out from the [http://projects.edgewall.com/trac/wiki/SubversionRepository Subversion repository]. 
    1515 
     16If you're doing a major version upgrade (such as from 0.8 to 0.9), it is ''highly'' recommended that you first remove the existing Trac code. To do this, you need to delete the `trac` directory from the Python `lib/site-packages` directory. You may also want to remove the Trac `cgi-bin`, `htdocs`, `templates` and `wiki-default` directories that are commonly found in a directory called `share/trac` (the exact location depends on your platform). 
     17 
    1618If you have a source distribution, you need to run 
    1719{{{ 
     
    2022 
    2123to install the new version. If you've downloaded the Windows installer, you execute it, and so on. 
    22  
    23 In any case, if you're doing a major version upgrade (such as from 0.8 to 0.9), it is ''highly'' recommended that you first remove the existing Trac code. To do this, you need to delete the `trac` directory from the Python `lib/site-packages` directory. You may also want to remove the Trac `cgi-bin`, `htdocs` and `templates` directories that are commonly found in a directory called `share/trac` (the exact location depends on your platform). 
    2424 
    2525=== Upgrade the Trac Environment === 
     
    5454The following sections discuss any extra actions that may need to be taken to upgrade to specific versions of Trac. 
    5555 
     56== From 0.9.x to 0.10.x == 
     57 
     58Due to some changes in the Wiki syntax, you may notice that certain parts of your pages no longer work as expected: 
     59 * Previously, links to images would result in that image being embedded into the page. Since 0.10, links to images remain plain links. If you want to embed an image in the page, use the `[[Image]]` macro. 
     60 * You can no longer use `%20` in wiki links to encode spaces. Instead, you should quote the name containing spaces (for example, use `wiki:"My page"` instead of `wiki:My%20page`.) 
     61 
     62Several enhancements have been made to the version control subsystem, in particular for the support of scoped repositories has been improved.  
     63It is recommended that you perform a [TracAdmin#InteractiveMode trac-admin] '''`resync`''' operation to take advantage of these improvements. 
     64 
     65Also note that the argument list of the [TracAdmin trac-admin] '''`initenv`''' command has changed: there's a new argument for determining the type of version control system. The old usage was: 
     66{{{ 
     67   initenv <projectname> <db> <repospath> <templatepath> 
     68}}} 
     69The new usage is: 
     70{{{ 
     71   initenv <projectname> <db> <repostype> <repospath> <templatepath> 
     72}}} 
     73If you're using any scripts that automate the creation of Trac environments, you will need to update them. If you're using Subversion, specify `svn` for the `<repostype>` argument. 
     74 
     75== From 0.9.3 to 0.9.4 == 
     76 
     77There is a bug in Pysqlite 1.x that causes reports using the "%" character for `LIKE` clauses or date formatting to fail.  You will need to use escape the percent characters with another: "%%". 
     78 
     79== From 0.9.x to 0.9.3 or later == 
     80 
     81If you are using plugins you might need to upgrade them. See http://projects.edgewall.com/trac/milestone/0.9.3 for further details. 
     82 
    5683== From 0.9-beta to 0.9 == 
    5784 
     
    83110}}} 
    84111 
     112To update multiple database files at once on linux you may use the following command (replace {{{/var/trac}}} withe the location where your trac installtions reside): 
     113{{{ 
     114 $ find /var/trac/ -iname "trac.db" | xargs -i bash -c "mv {} {}.2; sqlite {}.2 .dump | sqlite3 {};" 
     115}}} 
     116 
     117Remember the give the webserver write permission to trac.db. 
     118 
    85119After testing that the conversion was successful, the `trac2.db` file can be deleted. For more information on the SQLite upgrade see http://www.sqlite.org/version3.html. 
    86120