Closed (fixed)
Project:
Custom filter
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2009 at 18:08 UTC
Updated:
26 Nov 2009 at 04:40 UTC
During upgrading from beta 11 you get this error:
user warning: Table 'customfilter_filter' already exists query: ALTER TABLE customfilter_filters RENAME TO customfilter_filter in /home/mysite/www/includes/database.mysql-common.inc on line 249.
I had a working installation of beta 11 with different custom filters defined.
Regards.
Comments
Comment #1
NoRandom commentedSorry for double posting, I forgot to add the full error report:
...and after the failed upgrade you get this watchdog error:
Comment #2
NoRandom commented...update to "critical" since custom filter stop working.
Regards, thanks in advance and sorry for the triple posting.
UPDATE:
It seems the problem comes from my upgrade from drupal 5 to 6:
Drupal 5: customfilter_filter table
Drupal 6: customfilter_filters table (notice the ending S), so I lost all my filters. I thought it was caused by the drupal core upgrade. So I started from scratch all my filters.
Custom filter upgrade 1.0 beta 11 to beta 12: The module tryes to correct the error with the table name but the old one still exists.
Comment #3
avpadernoThe Drupal 6 branch always used the table name custom_filters. As most of the Drupal core tables are named using the singular (or they are renamed in such way in Drupal 7), I renamed the module tables as well, but I didn't notice the Drupal 5 branch used the name.
I will fix the problem with the update function.
Comment #4
avpadernoThe code has been changed, and committed in CVS.
To resolve the problem you need to manually delete the table custom_filter, and rename custom_filters as custom_filter.
Thanks for your help in finding an upgrade problem.