Closed (fixed)
Project:
Image
Version:
6.x-1.0-beta5
Component:
image_attach
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2010 at 13:48 UTC
Updated:
18 Feb 2010 at 06:30 UTC
while running update.php after updating to beta5 I get the error
The following queries were executed
image_attach module
Update #6102
* ALTER TABLE {image_attach} DROP PRIMARY KEY
* ALTER TABLE {image_attach} ADD PRIMARY KEY (nid, iid)
* Failed: ALTER TABLE {image_attach} ADD `weight` INT NOT NULL DEFAULT 0
Update #6103
* DELETE FROM {image_attach} WHERE iid = 0
Can anybody help me with getting rid of the error (I'm not an SQL expert)? My database is mysql 5.0.51b. It would be best if phpmyadmin could be used to solve the problem.
In the table image_attach there is a field weight. The error must be in the rest of the ALTER TABLE command.
Comments
Comment #1
joachim commentedHave you checked the troubleshooting FAQ?
Comment #2
FrankT commentedI have to admit I did not read the FAQ but searched for similar issues but the faq didn't show. I will ignore this behaviour.
Comment #3
joachim commented> * Failed: ALTER TABLE {image_attach} ADD `weight` INT NOT NULL DEFAULT 0
Well do you have a weight column now or not?
Comment #4
FrankT commentedYes, I have a weight column.