Ticket #193 (closed enhancement: fixed)
Opened 8 years ago
Last modified 6 years ago
Semi-automatic upgrade of databases when upgrading Trac
| Reported by: | daniel | Owned by: | daniel |
|---|---|---|---|
| Priority: | highest | Milestone: | 0.7 |
| Component: | general | Version: | 0.6 |
| Severity: | normal | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
Changes introduced to the Trac database in newerr versions should be easily applied to installed databases when upgrading.
Two approaches should be available:
- Explicitly upgrade a database when requested by the user/admin.
- Automatically upgrade if safe the database. This will only happen if the database schema is unmodified from the vanilla install.
1) is basically 'trac-admin foo.db upgrade' , but is not practical if you have several databases.
2) is performed when Trac detects an old version of a database that can be safely upgraded. It happens automatically, and the user never has to worry about upgrading. This should be default since the database should be considered embedded at all time. Trac installations using custom databases, hacked Trac code and such will not be automatically upgraded.
Implementation details
We'll have an Upgrade.py module, along with a single file per release-version containing all delta changes from the previous release. This way you can always upgrade from any older version to a later.
Automatic upgrade should be configurable as an option in the database itself.
Attachments
Change History
comment:1 Changed 8 years ago by daniel
- Status changed from new to assigned
- Summary changed from Semi-automatic upgrade of databases upon upgrading Trac to Semi-automatic upgrade of databases when upgrading Trac
comment:2 Changed 8 years ago by daniel
- Summary changed from Semi-automatic upgrade of databases when upgrading Trac to Semi-automatic upgrade of databases when upgrading Trac [done]
comment:3 Changed 8 years ago by daniel
- Summary changed from Semi-automatic upgrade of databases when upgrading Trac [done] to Semi-automatic upgrade of databases when upgrading Trac
comment:4 Changed 8 years ago by daniel
- Summary changed from Semi-automatic upgrade of databases when upgrading Trac to Semi-automatic upgrade of databases when upgrading Trac [done]
comment:5 Changed 8 years ago by anonymous
- Summary changed from Semi-automatic upgrade of databases when upgrading Trac [done] to Semi-automatic upgrade of databases when upgrading Trac
comment:6 Changed 8 years ago by daniel
- Resolution set to fixed
- Status changed from assigned to closed



Implemented in [345].