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

gnat’s picture

Assigned: Unassigned » gnat
Status: Active » Fixed

There 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.