Changes between Version 1 and Version 2 of TracUpgrade
- Timestamp:
- 24 May 2018, 12:41:09 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified TracUpgrade
v1 v2 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. 82 83 ===== Obsolete Plugins 84 85 Trac has added functionality equivalent to the following plugins: 86 87 * [https://trac-hacks.org/wiki/BatchModifyPlugin BatchModifyPlugin] 88 * [https://trac-hacks.org/wiki/GitPlugin GitPlugin] 89 * [https://trac-hacks.org/wiki/OverrideEditPlugin OverrideEditPlugin] 90 91 The plugins should be removed when upgrading Trac to 1.0. 80 92 81 93 ===== Subversion components not enabled by default for new installations … … 96 108 97 109 ===== Python 2.3 no longer supported 110 98 111 The minimum supported version of Python is now 2.4. 99 112 100 113 ===== SQLite v3.x required 114 101 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. 102 116 103 117 ===== [trac:PySqlite] 2 required 118 104 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. 105 120 121 ===== Obsolete Plugins 122 123 Trac has added functionality equivalent to the following plugins: 124 125 * [https://trac-hacks.org/wiki/AutoQueryPlugin AutoQueryPlugin] 126 * [https://trac-hacks.org/wiki/AdminConsoleProviderPatch AdminConsoleProviderPatch] 127 * [https://trac-hacks.org/wiki/AnchorMacro AnchorMacro]: see WikiFormatting#SettingAnchors 128 * [https://trac-hacks.org/wiki/TicketChangePlugin TicketChangePlugin]: see [TracPermissions#TicketSystem TICKET_EDIT_COMMENT permission] 129 * [https://trac-hacks.org/wiki/TicketDeletePlugin TicketDeletePlugin]: see `tracopt.ticket.deleter` 130 * [https://trac-hacks.org/wiki/SubversionLocationPlugin SubversionLocationPlugin]: see TracRepositoryAdmin#Repositories 131 * [https://trac-hacks.org/wiki/WikiCreoleRendererPlugin WikiCreoleRendererPlugin]: see [trac:WikiCreole] 132 * [https://trac-hacks.org/wiki/RepoRevisionSyntaxPlugin RepoRevisionSyntaxPlugin] (added in 0.12.1) 133 134 The plugins should be removed when upgrading Trac to 0.12. 135 106 136 ===== Multiple Repository Support 137 107 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. 108 139 … … 118 149 119 150 ===== Improved repository synchronization 151 120 152 In addition to supporting multiple repositories, there is now a more efficient method for synchronizing Trac and your repositories. 121 153 … … 125 157 126 158 ===== Authz permission checking 159 127 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. 128 161 129 162 ===== Microsecond timestamps 163 130 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. 131 165 132 166 ==== Upgrading from Trac 0.10 to Trac 0.11 167 133 168 ===== Site Templates and Styles 169 134 170 The templating engine has changed in 0.11 to Genshi, please look at TracInterfaceCustomization for more information. 135 171 … … 137 173 138 174 ===== Trac Macros, Plugins 175 139 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. 140 177 141 178 ===== For FCGI/WSGI/CGI users 179 142 180 For those who run Trac under the CGI environment, run this command in order to obtain the trac.*gi file: 143 181 {{{#!sh … … 152 190 ===== New Default Configurable Workflow 153 191 154 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. 155 156 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: 157 193 158 194 {{{#!Workflow width=500 height=240 … … 218 254 === Changing Database Backend 219 255 220 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. 221 257 222 258 === Upgrading from older versions of Trac #OlderVersions