Changes between Version 13 and Version 14 of TracUpgrade
- Timestamp:
- 20/07/2016 10:40:46 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracUpgrade
v13 v14 42 42 }}} 43 43 44 This command will do nothingif the environment is already up-to-date.44 This command will not have any effect if the environment is already up-to-date. 45 45 46 46 Note that a backup of your database will be performed automatically prior to the upgrade. 47 This feature is relatively new for PostgreSQL or MySQL databases, so if it fails, you will have to backup the database manually. Then, to perform the actual upgrade , run:47 This feature is relatively new for PostgreSQL or MySQL databases, so if it fails, you will have to backup the database manually. Then, to perform the actual upgrade: 48 48 {{{#!sh 49 49 trac-admin /path/to/projenv upgrade --no-backup … … 65 65 trac-admin /path/to/env deploy /deploy/path 66 66 }}} 67 67 68 this will extract static resources and CGI scripts (`trac.wsgi`, etc) from new Trac version and its plugins into `/deploy/path`. 68 69 … … 77 78 78 79 ===== Python 2.4 no longer supported 80 79 81 Upgrade Python to at least 2.5, but not 3.0. 80 82 … … 106 108 107 109 ===== Python 2.3 no longer supported 110 108 111 The minimum supported version of Python is now 2.4. 109 112 110 113 ===== SQLite v3.x required 114 111 115 SQLite v2.x is no longer supported. If you still use a Trac database of this format, you'll need to convert it to SQLite v3.x first. See [trac:PySqlite#UpgradingSQLitefrom2.xto3.x] for details. 112 116 113 117 ===== [trac:PySqlite] 2 required 118 114 119 [trac:PySqlite] 1.1.x is no longer supported. Please install 2.5.5 or later if possible, see [#Tracdatabaseupgrade Trac database upgrade] below. 115 120 … … 130 135 131 136 ===== Multiple Repository Support 137 132 138 The latest version includes support for multiple repositories. If you plan to add more repositories to your Trac instance, please refer to TracRepositoryAdmin#Migration. 133 139 … … 143 149 144 150 ===== Improved repository synchronization 151 145 152 In addition to supporting multiple repositories, there is now a more efficient method for synchronizing Trac and your repositories. 146 153 … … 150 157 151 158 ===== Authz permission checking 159 152 160 The authz permission checking has been migrated to a fine-grained permission policy. If you use authz permissions (aka `[trac] authz_file` and `authz_module_name`), you must add `AuthzSourcePolicy` in front of your permission policies in `[trac] permission_policies`. You must also remove `BROWSER_VIEW`, `CHANGESET_VIEW`, `FILE_VIEW` and `LOG_VIEW` from your global permissions with `trac-admin $ENV permission remove` or the "Permissions" admin panel. 153 161 154 162 ===== Microsecond timestamps 163 155 164 All timestamps in database tables, except the `session` table, have been changed from "seconds since epoch" to "microseconds since epoch" values. This change should be transparent to most users, except for custom reports. If any of your reports use date/time columns in calculations (e.g. to pass them to `datetime()`), you must divide the values retrieved from the database by 1'000'000. Similarly, if a report provides a calculated value to be displayed as a date/time (i.e. with a column named "time", "datetime", "changetime", "date", "created" or "modified"), you must provide a microsecond timestamp, that is, multiply your previous calculation with 1'000'000. 156 165 157 166 ==== Upgrading from Trac 0.10 to Trac 0.11 167 158 168 ===== Site Templates and Styles 169 159 170 The templating engine has changed in 0.11 to Genshi, please look at TracInterfaceCustomization for more information. 160 171 … … 162 173 163 174 ===== Trac Macros, Plugins 175 164 176 The Trac macros will need to be adapted, as the old-style wiki-macros are not supported anymore due to the drop of [trac:ClearSilver] and the HDF. They need to be converted to the new-style macros, see WikiMacros. When they are converted to the new style, they need to be placed into the plugins directory instead and not wiki-macros, which is no longer scanned for macros or plugins. 165 177 166 178 ===== For FCGI/WSGI/CGI users 179 167 180 For those who run Trac under the CGI environment, run this command in order to obtain the trac.*gi file: 168 181 {{{#!sh … … 177 190 ===== New Default Configurable Workflow 178 191 179 When you run `trac-admin <env> upgrade`, your `trac.ini` will be modified to include a `[ticket-workflow]` section. The workflow configured in this case is the original workflow, so that ticket actions will behave like they did in 0.10. 180 181 Graphically, that looks like this: 192 When you run `trac-admin <env> upgrade`, your `trac.ini` will be modified to include a `[ticket-workflow]` section. The workflow configured in this case is the original workflow, so that ticket actions will behave like they did in 0.10: 182 193 183 194 {{{#!Workflow width=500 height=240 … … 243 254 === Changing Database Backend 244 255 245 The [http ://trac-hacks.org/wiki/TracMigratePlugin TracMigratePlugin] on [http://trac-hacks.org trac-hacks.org] has been written to assist in migrating between SQLite, MySQL and PostgreSQL databases.256 The [https://trac-hacks.org/wiki/TracMigratePlugin TracMigratePlugin] on [https://trac-hacks.org trac-hacks.org] has been written to assist in migrating between SQLite, MySQL and PostgreSQL databases. 246 257 247 258 === Upgrading from older versions of Trac #OlderVersions