Hi,
When uploading an image in CCK. I get the below error.

user warning: Table 'XXXX.visual_search_imagedata' doesn't exist query: INSERT INTO visual_search_imagedata VALUES('', 31, 'c0c080', 6.51) in /var/www/html/XXXX/sites/all/modules/visual_search/visual_search_api.module on line 224.

Note: When the database is checked. There exists no visual_search_imagedata table. May be something o do with the 'visual_seach_api.install'

Comments

ragavendra_bn’s picture

Manually added the table. Not sure if is correct...........

CREATE TABLE visual_search_imagedata (vid serial not null, fid int not null, color varchar(6) not null, percentage numeric(8,2));

ebeyrent’s picture

Assigned: Unassigned » ebeyrent

It's the schema - one of the fields is a float, and the schema api doesn't appear to handle it properly. I'm still researching alternatives, and if anyone knows what's wrong with the hook_schema() implementation, please send me a patch!

ebeyrent’s picture

Status: Active » Fixed

I was totally wrong in #2. My .install file was misnamed, so none of the hooks were executing. Very embarrassing!

This is fixed in CVS.

Status: Fixed » Closed (fixed)

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

ebeyrent’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

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