It was actually your resolution I attempted earlier. Already did a check and a repair on the table. Then went to Admin > Repair > Quick and did that too. This was not effective.
I think I have it resolved though. I suspect that somewhere in a previous version maybe 6.1.1 could be earlier the table creation for the cases failed to create an auto increment field for the case number. When i cracked it open to have a look I noticed no auto_increment and a default set for 0 (zero). I turned that column into an autoincrement and cleared the default. I have been sending emails to and from in testing and it seems to be working fine. Just to make sure I had a look at the relationships and those too seem to be fine.
So I think the answer to this bug is....
PHP Code:
ALTER TABLE `cases` CHANGE `case_number` `case_number` INT( 11 ) NOT NULL AUTO_INCREMENT
I'm also noticing that phpmyadmin is complaining about this. "The following indexes appear to be equal and one of them should be removed: casesnumk, case_number" And sure enough these are both set on the same column. One is a UNIQUE and one an INDEX. I think the UNIQUE should suffice but that's just my opinion.
Thanks for the suggestion though and taking the time to read. Shall I mark this as resolved or do you have any further feedback for me?
BigWil
Bookmarks