Errors while updating the module

KiamLaLuno - July 1, 2009 - 19:05
Project:Flag
Version:6.x-1.x-dev
Component:Flag core
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

When I updated the module, I got the following errors:

user warning: Incorrect table definition; there can be only one auto column and it must be defined as a key query: ALTER TABLE test__flags DROP PRIMARY KEY in /home/avpnet/public_html/includes/database.mysql-common.inc on line 386.

user warning: Multiple primary key defined query: ALTER TABLE test__flags CHANGE fid `fid` SMALLINT unsigned NOT NULL auto_increment, ADD PRIMARY KEY (fid) in /home/avpnet/public_html/includes/database.mysql-common.inc on line 520.

#1

quicksketch - July 1, 2009 - 23:06

What version were you upgrading from, a Drupal 5 or 6 site? And which version of Flag (or Views bookmark) were you upgrading from?

#2

KiamLaLuno - July 1, 2009 - 23:47

I updated Flag in a Drupal 6 site. I am not sure about the previously installed version of Flag; it could be either the official release, or the previous development snapshot (still 6.x-1.x-dev).

#3

quicksketch - September 28, 2009 - 16:19
Status:active» duplicate

This was fixed in #577132: Error upgrading to 2.x. There was a problem with the flag_update_6004() update that ultimately just ended with removing the update entirely.

 
 

Drupal is a registered trademark of Dries Buytaert.