Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema update erorr #3

Open
fgm opened this issue Apr 1, 2011 · 0 comments
Open

Schema update erorr #3

fgm opened this issue Apr 1, 2011 · 0 comments

Comments

@fgm
Copy link

fgm commented Apr 1, 2011

I noticed what appears to be either a logic error in this code, or a Field API bug. Here is the issue, simple to reproduce:

  • Install the latest version of the module
  • create a "dim" field, 3-dimension, whichever widget, on a content type
  • save the instance
  • edit the instance, set it to 2-dimension
  • save it: DBTNG error attempting to create a "depth" index although this
    dimension no longer exists
  • field table no longer exists, but field definition remains in
    field_config[_instance] tables: manual cleaning needed in DB

This apparently happens because the hook_field_schema() implementation is
invoked twice during save, the first time with the old num_dimensions=3 value
and the second time with num_dimensions=2, but field API seems to get the
info from the first, pre-save, invocation, with the 3 columns in the schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant