Ticket #1348 (closed defect: invalid)
db_default.py generates some bogus tables
| Reported by: | outi <outi@…> | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | 0.8.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I tried to get the post-commit script to work, but failed. So i took a closer look at the script and it's sql-queries. During doing so i realised that the database layout of 2 tables was different than it supposed to be. The problem with db_default.py are the comments placed in the structure of table layout. On my Systems (all FreeBSD 5.3-Stable and SQLlite 2.8.16) the generated tables have some bogus columns and are missing some other. Very stange is that trac keeps working! Only post-commit hook fails. Maybe there are some functions that suffer from this bug, but i didn't trigger them yet.
Table "ticket" with comments in file:
| Column | Type |
| id | integer PRIMARY KEY |
| time | integer |
| -- | problem description (long) keywords text |
| component | text |
| severity | text |
| priority | text |
| owner | text |
| cc | text |
| resolution | text |
| summary | text |
Table "ticket" without comments:
| Column | Type |
| id | integer PRIMARY KEY |
| time | integer |
| changetime | integer |
| component | text |
| severity | text |
| priority | text |
| owner | text |
| reporter | text |
| cc | text |
| url | text |
| version | text |
| milestone | text |
| status | text |
| resolution | text |
| summary | text |
| description | text |
| keywords | text |
Tables "permission" and since some revisions "node_change", too. I'll attach a patch for this. Hopefully someone can verify this bug.


