Problem/Motivation
When trying to run of of the latest Drupal core update hooks system_post_update_add_langcode_to_all_translatable_config I got the following error:
AssertionError: Failed on config name 'preview.settings' in assert() (line 264 of /var/www/html/web/core/modules/system/system.post_update.php).
Steps to reproduce
1. Update to latest Drupal core 10.3.1
2. Run drush updb
3. Verify that system_post_update_add_langcode_to_all_translatable_config will fail.
Proposed resolution
I could fix that by using a mapping instead of a sequence and since we have know keys this should be fine.
Issue fork all_entity_preview-3462656
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
yannickooComment #6
a.dmitriiev commentedIt seems that core since Drupal 10.3 insists that all simple configurations are mappings (config objects). I have changed the config schema and created an update hook for re-saving the existing settings in a new format.