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 |
Jump to:
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
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
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
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.