Trac environment upgrade fails using MySQL
|Reported by:||jluna||Owned by:||Noah Kantrowitz|
|Severity:||major||Keywords:||mysql schema upgrade database|
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?