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

perusio - July 12, 2009 - 15:15
Title:Table installation» Table installation: patch attached
Status:active» patch (to be ported)

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.

AttachmentSize
countries_api.install.patch 2.68 KB

#2

mrfelton - July 18, 2009 - 09:29
Status:patch (to be ported)» fixed

fixed in cvs, thanks

#3

System Message - August 1, 2009 - 09:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.