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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | countries_api.install.patch | 2.68 KB | perusio |
Comments
Comment #1
perusio commentedYes 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.
Comment #2
mrfelton commentedfixed in cvs, thanks