Changes between Version 1 and Version 2 of TracUpgrade
- Timestamp:
- Nov 1, 2006, 6:13:24 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracUpgrade
v1 v2 14 14 Get 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]. 15 15 16 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`, `templates` and `wiki-default` directories that are commonly found in a directory called `share/trac` (the exact location depends on your platform). 17 16 18 If you have a source distribution, you need to run 17 19 {{{ … … 20 22 21 23 to 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).24 24 25 25 === Upgrade the Trac Environment === … … 54 54 The following sections discuss any extra actions that may need to be taken to upgrade to specific versions of Trac. 55 55 56 == From 0.9.x to 0.10.x == 57 58 Due 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 62 Several enhancements have been made to the version control subsystem, in particular for the support of scoped repositories has been improved. 63 It is recommended that you perform a [TracAdmin#InteractiveMode trac-admin] '''`resync`''' operation to take advantage of these improvements. 64 65 Also 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 }}} 69 The new usage is: 70 {{{ 71 initenv <projectname> <db> <repostype> <repospath> <templatepath> 72 }}} 73 If 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 77 There 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 81 If you are using plugins you might need to upgrade them. See http://projects.edgewall.com/trac/milestone/0.9.3 for further details. 82 56 83 == From 0.9-beta to 0.9 == 57 84 … … 83 110 }}} 84 111 112 To 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 117 Remember the give the webserver write permission to trac.db. 118 85 119 After 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. 86 120