- Issue created by @saki_rayogram
- πΊπΈUnited States justcaldwell Austin, Texas
Sorry you're haveing trouble @saki_rayogram! I'll try to make some time to dig into this in the next few days.
Based on a quick look, perhaps we should move that schema change to a
hook_post_update_NAME()
rather than ahook_update_n()
based on this change record β .Note that schema conversions when there is existing data are only supported when executed through a hook_post_update_NAME() implementation, because they need to run in a batch process.
- πΊπΈUnited States saki_rayogram
Thanks so much @justcaldwell that would be great!
- πΊπΈUnited States justcaldwell Austin, Texas
Hi @saki_rayogram. Sorry for the delay in getting back to this.
I'm still investigating, but in looking back over the history of the module, your issue may stem from the fact that the underlying field type for yearonly was changed from
string
tolist_integer
, but there was no upgrade path provided to convert existing data. This occurred with the 8.x-1.3 release. In fact, looks like the issue was previously reported in #2926028: Mismatched entity and/or field definitions β .Do happen to you know what version of Year Only was originally installed on your site, or do you suspect you were using it prior to the 8.x-1.3 release?
- Status changed to Postponed: needs info
11 months ago 8:44pm 21 May 2024 - πΊπΈUnited States justcaldwell Austin, Texas
CR: The SQL storage schema for an existing fields can be changed β won't be available until drupal 10.3, but might offer a solution here (?).