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!)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | search_files.install.gz | 623 bytes | remi |
Comments
Comment #1
remi commentedI guess the file didn't go through. I'm attaching it again.
Comment #2
schildi commentedComment #3
schildi commentedpatch applied