Modify ↓
#2077 closed defect (wontfix)
Trac environment upgrade fails using MySQL
| Reported by: | jluna | Owned by: | Noah Kantrowitz |
|---|---|---|---|
| Priority: | high | Component: | TracForgePlugin |
| Severity: | major | Keywords: | mysql schema upgrade database |
| Cc: | Trac Release: | 0.10 |
Description
When [re-]creating the TracForge tables, MySQL drops out with:
Incorrect table definition; there can be only one auto column and it must be defined as a key
Anyhow, it's an easy fix. The annoying part is that it leaves the database in a half-updated state. Perhaps upgrade_environment should be wrapped in a generic try-except block to perform a database rollback in the event of an error?
Attachments (0)
Change History (5)
comment:1 follow-up: 2 Changed 18 years ago by
comment:2 Changed 18 years ago by
I am having the same problem - could you please let me know your fix?
Many thanks,
Paul
comment:3 Changed 18 years ago by
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
I do not test on MySQL, nor do I plan to, so consider this even more unsupported than normal.
comment:4 Changed 18 years ago by
Yeah, thanks for that. Big help for those of us who choose to use MySQL for various legitimate reasons.
comment:5 Changed 18 years ago by
FIX IS SIMPLE:
--- tracforge/admin/db_default.py.orig 2007-12-27 12:00:17.000000000 -0800
+++ tracforge/admin/db_default.py 2007-12-27 12:00:26.000000000 -0800
@@ -7,7 +7,7 @@
Column('name'),
Column('env_path'),
],
- Table('tracforge_project_log', key=('project', 'action'))[
+ Table('tracforge_project_log', key=('project', 'action', 'id'))[
Column('id', auto_increment=True),
Column('project'),
Column('action'),
Note: See
TracTickets for help on using
tickets.



Replying to jluna: