Download & Extend

Update function is referring to a not existing column

Project:Custom filter
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)
Issue tags:6.x-1.0-beta8, 6.x-2.0-beta4

Issue Summary

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`

Comments

#1

Title:Update #6107 Failed» Update function is referring to a not existing column

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

#2

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

Status:fixed» closed (fixed)

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

nobody click here