Duplicate field during update.php
yktdan - December 30, 2008 - 16:26
| Project: | Ubercart Addresses |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | freixas |
| Status: | closed |
Jump to:
Description
user warning: Duplicate column name 'address_name' query: ALTER TABLE uc_addresses ADD COLUMN address_name VARCHAR(20) DEFAULT NULL AFTER country in /home/nynjtcn/public_html/new.nynjtc.net/includes/database.mysql.inc on line 174.

#1
This one is going to be difficult. It looks like somehow you are getting an update applied twice. I'll take a look at the code, but if I don't see something obvious, I may not be able to help.
Since the problem implies that you are applying an update twice, the failure of the second update shouldn't pose any problems to your system. Do you have any problems using uc_addresses?
You could also completely uninstall uc_addresses and re-install it, but you would lose any addresses already stored.
Is there anything special about your system that may have caused this problem to occur? For example, Drupal remembers the last set of updates applied. If you erase this information, updates will be re-applied.
#2
Closed due to lack of response.