Failure to update schema due to unsaved weight
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3412671. -->
Reported by: [nterbogt](https://www.drupal.org/user/102218)
Related to !27
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Looks like the weight field wasn't always saved to <code>0</code> in all previous versions of entity_hierarchy. So updating the schema to not null fails.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Have a database with a <code>NULL</code> weight and attempt to run <code>entity_hierarchy_post_update_update_weight_column</code>.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Set <code>NULL</code> records to <code>0</code>.</p>
issue