Closed (fixed)
Project:
Profile Taxonomy
Version:
6.x-1.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
27 May 2010 at 14:20 UTC
Updated:
15 Jun 2010 at 13:50 UTC
Installing under Drupal 6-16, The following error appears:
user warning: Key column 'field' doesn't exist in table query: CREATE TABLE profile_taxonomy ( `fid` INT unsigned NOT NULL DEFAULT 0, `vid` INT unsigned NOT NULL DEFAULT 0, PRIMARY KEY (field, vid) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ in /srv/www/webinars02-drupal-6.16/includes/database.inc on line 550.
It looks as though there is a typo on line 33 of profile_taxonomy.install:
'primary key' => array('field', 'vid'),
Changing 'field' to 'fid' allowed the module to install. However, I notice that there seem to have been some changes around rc1, rc2 regarding whether field names, or fids are stored in the table, so I am not confident that this is a correct fix for this problem.
Once I changed this line, I still encountered another problem (submiited separately.)
Comments
Comment #1
gnindl commentedThere was a typo. Of course "fid" is the new primary key, not the previous field "field".
Comment #2
ctrent commentedThanks - the module installs cleanly now