Posted by albertski on November 14, 2012 at 2:22pm
I am updating one of my modules that creates a Field using the Field API. I need to add two more columns to my database so I use hook_update_N. It adds the columns to my database but Drupal Fields still does not see it. If I look in $element['columns'] it does not show the new columns.
Is it possible to update the field schema after it is installed? Does anyone have any idea what I am missing?
Comments
Did you update your
Did you update your hook_schema to also reflect the new columns?
hook_schema should always reflect the latest/greatest then you use hook_update_N to pull old versions up to snuff.
I'm unique, just like everybody else.
If I helped, please pay it forward, backward or sidelong.
Thanks!
Thanks that worked. I updated the field schema to included all the new columns added in the in update.