Closed (fixed)
Project:
OG Contact
Version:
5.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Sep 2008 at 06:50 UTC
Updated:
9 Oct 2008 at 16:52 UTC
During my database update to OG Contact I receive this notification:
Duplicate column name 'notpublic' query: ALTER TABLE og_contact ADD COLUMN notpublic numeric(2) NOT NULL DEFAULT 0 in /var/www/html/drupal-5.2/includes/database.mysql.inc on line 172.
array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/html/drupal-5.2/update.php on line 309.
Invalid argument supplied for foreach() in /var/www/html/drupal-5.2/update.php on line 542.
It does not actually list in the "errors" section of the update, and from these notifications it almost looks as if I don't need to update the module at all, but I figure I should drop this in here just in case.
Comments
Comment #1
gnat commentedThere was a missing "break" in the implementation(s) of hook_update_N(), causing the update script to attempt adding the same field twice. This is fixed in the next nightly build, and upcoming new release.
If you have encountered this bug, it should not affect the operation of OG Contact at all, since the table change actually did happen.
Thanks to John Morahan for his help in #drupal; he was the second set of eyes that saw the missing piece I wasn't seeing.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.