Duplicate update 10307
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3555911. -->
Reported by: [a.dmitriiev](https://www.drupal.org/user/3235287)
Related to !207
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The update hook 10307 is duplicated, it exists in branch 1.1.x and 1.2.x but with different code inside, see <a href="https://git.drupalcode.org/project/ai_agents/-/blob/1.1.x/ai_agents.install?ref_type=heads#L227">https://git.drupalcode.org/project/ai_agents/-/blob/1.1.x/ai_agents.install?ref_type=heads#L227</a> and <a href="https://git.drupalcode.org/project/ai_agents/-/blob/1.2.x/ai_agents.install?ref_type=heads#L227">https://git.drupalcode.org/project/ai_agents/-/blob/1.2.x/ai_agents.install?ref_type=heads#L227</a> . This leads to the problem that when updating from latest 1.1.x version to 1.2.0 and higher, the required moduler_api module is not being installed and because of this it seems that AI Agents have lost the UI, as without moduler_api there is no way to edit/create agents in admin UI.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Install AI Agents in latest 1.1.3 version, or any previous version and update to 1.1.3.</li>
<li>Run updb commands.</li>
<li>Update module to 1.2.0</li>
<li>Run updb commands - observe that there is nothing to update.</li>
<li>Observe that moduler_api is not installed</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Increment the update hook number and re-run the update 10307 as in version 1.2.x the update hook from 1.1.x was also not run.</p>
issue