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.

CommentFileSizeAuthor
#1 countries_api.install.patch2.68 KBperusio

Comments

perusio’s picture

Title: Table installation » Table installation: patch attached
Status: Active » Patch (to be ported)
StatusFileSize
new2.68 KB

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.

mrfelton’s picture

Status: Patch (to be ported) » Fixed

fixed in cvs, thanks

Status: Fixed » Closed (fixed)

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