Modify ↓
Opened 18 years ago
Closed 18 years ago
#3740 closed enhancement (fixed)
DB Upgrades
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | low | Milestone: | 0.10 |
Component: | admin/console | Version: | devel |
Severity: | trivial | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Currently and most likely for the future also, trac on supports backing up SQLite databases.
So why not output:
Can only backup sqlite databases. Check your database documentation to backup(dump) your database.
instead of:
Can only backup sqlite databases.
Purposed patch:
-
/usr/lib/python2.4/site-packages/trac/env.py
old new 299 299 300 300 db_str = self.config.get('trac', 'database') 301 301 if not db_str.startswith('sqlite:'): 302 raise EnvironmentError, 'Can only backup sqlite databases' 302 raise EnvironmentError, 'Can only backup sqlite databases. ' + \ 303 'Check your database documentation to backup(dump) ' + \ 304 'your database.' 303 305 db_name = os.path.join(self.path, db_str[7:]) 304 306 if not dest: 305 307 dest = '%s.%i.bak' % (db_name, self.get_version())
Attachments (0)
Change History (4)
comment:1 by , 18 years ago
Milestone: | → 0.11 |
---|
comment:2 by , 18 years ago
comment:3 by , 18 years ago
Milestone: | 0.11 → 0.10 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Just got hit by that…
comment:4 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Implemented in r3788, thanks for the suggestion!
Note:
See TracTickets
for help on using tickets.
Improved patch:
/usr/lib/python2.4/site-packages/trac/env.py