Update function is referring to a not existing column

BenKewell - August 11, 2009 - 14:49
Project:Custom filter
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Issue tags:6.x-1.0-beta8, 6.x-2.0-beta4
Description

Update #6107 failed with message:

Failed: ALTER TABLE {customfilter_filters} CHANGE fid `fid` TINYINT NOT NULL DEFAULT 1, ADD PRIMARY KEY (rid)

and
user warning: Key column 'rid' doesn't exist in table query: ALTER TABLE ktmss__customfilter_filters CHANGE fid `fid` TINYINT NOT NULL DEFAULT 1, ADD PRIMARY KEY (rid) in /home/ktmss/www/www/includes/database.mysql-common.inc on line 520.

seems to be a typo in the code, primary key should be `fid` not `rid`

#1

kiamlaluno - August 11, 2009 - 17:14
Title:Update #6107 Failed» Update function is referring to a not existing column

The problem has been fixed.
Thanks again for the report.

#2

kiamlaluno - August 11, 2009 - 18:06
Version:6.x-1.0-beta8» 6.x-1.x-dev
Status:active» fixed

I am going to create a new beta version that contains the bug fix.

#3

System Message - August 25, 2009 - 18:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.