I enabled the apachesolr module via drush and was greeted with the following warnings:
Apache Solr framework was enabled successfully. [ok]
Search was enabled successfully. [ok]
user warning: Table 'example.apachesolr_search_node' [error]
doesn't exist
query: DELETE FROM apachesolr_search_node in
/var/www/html/drupal-6-sites/all/modules/apachesolr/apachesolr.module
on line 276.
user warning: Table 'example.apachesolr_search_node' [error]
doesn't exist
query: INSERT INTO apachesolr_search_node (nid, status, changed)
SELECT n.nid, n.status, GREATEST(n.created, n.changed,
c.last_comment_timestamp) AS changed
FROM node n
LEFT JOIN node_comment_statistics c ON n.nid = c.nid in
/var/www/html/drupal-6-sites/all/modules/apachesolr/apachesolr.module
on line 281.
user warning: Table 'example.apachesolr_search_node' [error]
doesn't exist
query: UPDATE apachesolr_search_node SET changed = 1255878315 WHERE
changed > 1255878315 in
/var/www/html/drupal-6-sites/all/modules/apachesolr/apachesolr.module
on line 284.
An error occurred at function : drush_pm_enable [error]
Do the above queries need to be executed if the required table doesn't exist yet?
Comments
Comment #1
buddaCorrecting typo in the title :)
Comment #2
jpmckinney commentedComment #3
jpmckinney commentedThis table is created in hook_install and those queries are run in hook_enable, so the table should already exist.
I haven't been able to reproduce the error by running "drush enable apachesolr" on rc3.
I'm using an old drush from 2009/10/26. Maybe it was a bug in drush?
Comment #4
jpmckinney commentedComment #5
jpmckinney commented