I'm not sure if there are any written "guidelines" or instructions for this, but table names in db_query() should be surrounded with curly brackets ( { } ), which helps the function parse the queries and prepend the common table prefix to the table names.

The function search_files_uninstall in the file search_files.install implements those brackets, whereas the function search_files_install does not.

This mistake causes the installation of the module to not properly create the needed tables in the database, if a common table prefix is specified in the settings.php file for the Drupal site.

I've attached a corrected search_files.install file that corrects this issue. Only the queries in the search_files_install() function have been changed.

(I'm not able to create a patch file at this time. Sorry!)

CommentFileSizeAuthor
#1 search_files.install.gz623 bytesremi

Comments

remi’s picture

StatusFileSize
new623 bytes

I guess the file didn't go through. I'm attaching it again.

schildi’s picture

Assigned: Unassigned » schildi
schildi’s picture

Status: Active » Closed (fixed)

patch applied