Opened 6 years ago
Closed 6 years ago
#1484301 closed Bugs (fixed)
mysql update ERROR
| Reported by: | vgelias | Owned by: | fourat.zouari |
|---|---|---|---|
| Priority: | 5 | Milestone: | |
| Component: | Database | Version: | 0.1-beta2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I'm using a stable 0.1-beta22 in production, I am trying to update to the svn trunk 510. But when I try to update table messages, I cant because the "uniqueness", this is not unique !!!
What I have to do ??
ALTER TABLE messages
DROP body,
DROP INDEX cache_key,
ADD structure TEXT,
ADD UNIQUE uniqueness (user_id, cache_key, uid);
Change History (6)
comment:1 Changed 6 years ago by fourat.zouari
- Owner set to fourat.zouari
- Status changed from new to assigned
comment:2 Changed 6 years ago by fourat.zouari
- Resolution set to fixed
- Status changed from assigned to closed
comment:3 Changed 6 years ago by vgelias
If I just delete the duplicates, this gonna work without problems ?? Do you have a delete schema for me ? :)
comment:4 Changed 6 years ago by DvD
I got the same problem, how did you solve it?
Am i supposed to delete the duplicated rows?
comment:5 Changed 6 years ago by DvD
- Resolution fixed deleted
- Status changed from closed to reopened
I still have the same problem, i can't update roundcube and i really need to.
No one else has got the same problem? vgelias, how did you solve it?
comment:6 Changed 6 years ago by thomasb
- Resolution set to fixed
- Status changed from reopened to closed
This table is for caching only and you can clear it before updating:
TRUNCATE TABLE messages;

I think you should find duplicates manually doing :