Table installation: patch attached
promes - June 29, 2009 - 13:57
| Project: | Country codes API |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
After upgrade from version 1.0 to 1.1 and running update.php I got a large number of errors because the database table was not installed.
I uninstalled version 1.0 and reinstalled version 1.1, which installed the database table. After the reinstall update.php runs ok.

#1
Yes the table wasn't created in the previous version and hook_update_N() fails because there's no table to fill
with ther values from the CSV file.
Also hook_update_N should call update_sql in order for drupal to keep track of the update status and return
it as the hook_update_N() invocation result message.
There's a patch attached.
If you had problems, after applying the patch go to http://yoursite_root/update.php and
select 'update 5101' in the dropdown for countries_api module.
Run update and everything should go ok.
#2
fixed in cvs, thanks
#3
Automatically closed -- issue fixed for 2 weeks with no activity.