Posted by Turkish Delight on September 23, 2008 at 6:50am
2 followers
Jump to:
| Project: | OG Contact |
| Version: | 5.x-4.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | gnat |
| Status: | closed (fixed) |
Issue Summary
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
#1
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.
#2
Automatically closed -- issue fixed for two weeks with no activity.