Closed (fixed)
Project:
Custom Field
Version:
3.1.8
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 May 2025 at 22:16 UTC
Updated:
25 May 2025 at 13:11 UTC
Jump to comment: Most recent
Comments
Comment #2
apmsooner commentedHi, i'm not really sure how this failed you. I just tried the update on another installation with 3.1.7, added a bunch of data and then installed 3.1.8 and the update ran just fine. Maybe you can export the config for the field storage that is giving you problems and paste here and perhaps I can take a look. I'm not really sure why it thinks its changing schema in the db, the update is only changing settings. If anyone else has similar issues then maybe we can figure out a way to isolate it but whatever your storage config looks like may give us some clues. You can go to: /admin/config/development/configuration/single/export to get that.
Comment #3
giuse69 commentedAs an additional info, the update failed on custom_field module Update #8005, that I see in the code actually tries to change the schema.
Does this help?
Comment #4
apmsooner commentedin that update in the .install file, you can try adding this extra line right before the save action. If that works, just verify no data loss. I think its just triggering a safety feature in storage settings to prevent data loss although I still havn't been able to reproduce the issue. It could be helpful again if you could share the storage config for that field.
// Update the settings.
$field_storage_config->setSetting('columns', $columns);
$field_storage_config->setSetting('column_changes_handled', TRUE);
$field_storage_config->save();
Comment #5
giuse69 commentedHi, I added the line and the update again failed with the same reason
The configuration for that field is the following
Comment #6
apmsooner commentedI was able to reproduce and fix. Please try the dev branch and verify if the update goes through now. Please confirm for me as I will roll out another release for others that may experience the same issue.
Comment #7
giuse69 commentedhi, with the dev version I get no more errors.
thanks
Giuse
Comment #8
apmsooner commentedComment #9
apmsooner commented