Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#193 closed enhancement (fixed)

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: Branch:
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:

  1. Explicitly upgrade a database when requested by the user/admin.
  2. 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 (0)

Change History (6)

comment:1 by daniel, 15 years ago

Status: newassigned
Summary: Semi-automatic upgrade of databases upon upgrading TracSemi-automatic upgrade of databases when upgrading Trac

comment:2 by daniel, 15 years ago

Summary: Semi-automatic upgrade of databases when upgrading TracSemi-automatic upgrade of databases when upgrading Trac [done]

comment:3 by daniel, 15 years ago

Summary: Semi-automatic upgrade of databases when upgrading Trac [done]Semi-automatic upgrade of databases when upgrading Trac

comment:4 by daniel, 15 years ago

Summary: Semi-automatic upgrade of databases when upgrading TracSemi-automatic upgrade of databases when upgrading Trac [done]

comment:5 by anonymous, 15 years ago

Summary: Semi-automatic upgrade of databases when upgrading Trac [done]Semi-automatic upgrade of databases when upgrading Trac

comment:6 by daniel, 15 years ago

Resolution: fixed
Status: assignedclosed

Implemented in [345].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.