I needed to change type of a custom table's column for the good reason, however now Schema module is outputting:

column value - differences on: type, length
declared: array('description' => 'TODO: please describe this field!', 'type' => 'int', 'not null' => FALSE)
actual: array('description' => 'TODO: please describe this field!', 'type' => 'varchar', 'length' => '11', 'not null' => FALSE)

How can I update the previously declared array and not the actual one? I use Data module to import the custom table to Drupal and have already updated the table column's type in Data. Where else I should look to get this updated and get rid of Schema's complaining?

Thanks!

Comments

greggles’s picture

Title: How and where to update declared and not the actual array? » How and where to update declared and not the actual array for Data module
Status: Active » Postponed (maintainer needs more info)

Just clarifying that this seems to be an issue related to data module.

Were you able to resolve it? It might be better to move this to the Data module issue queue.

joachim’s picture

Project: Schema » Data
Version: 7.x-1.2 » 7.x-1.x-dev
Category: Support request » Feature request
Status: Postponed (maintainer needs more info) » Active

Yup, I'd say this is to do with Data module. Which as it happens, I also maintain... but it's been *years* since I looked at it much.

At a guess, Data possibly stores the schema from an adopted table, and then supplies that to hook_schema(). So we'd need to add a 'refresh schema' system.