Ticket #2512 (closed defect: fixed)
NULL values in severity field cause partial trac-admin <env> upgrade
| Reported by: | aroach@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | high | Milestone: | 0.9.3 |
| Component: | general | Version: | 0.9.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Upgrading from 0.8.4 to 0.9.2 and moving from sqlite 2 to sqlite 3
If the 'severity' field in the ticket table has null values, the trac-admin <env> upgrade script does not carry forward those records.
The upgrade script that contains this issue is: http://projects.edgewall.com/trac/browser/trunk/trac/upgrades/db13.py
<claw> cmlenz: I think the records that I'm missing have severity as NULL, and the queries in db13.py only look for = 'enhancement' and <> 'enhancement'; does that make sense? <cmlenz> hmm, that sounds like it might be the problem <cmlenz> try "WHERE COALESCE(severity, '') <> 'enhancement'" in db13.py (line 30)
I think the way that I got into this problem is because I had modified the newticket.cs template to not display the "Ticket Properties" section. This must have allowed the Severity to not be included in the SQL INSERT for a new ticket.


