Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
gregglesJust 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.
Comment #2
joachim CreditAttribution: joachim as a volunteer commentedYup, 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.