Update failed: migrate_tools_update_10000

Created on 11 March 2025, about 1 month ago

Problem/Motivation

When run drush updb -y it show me the list of updates that includes also
10000 - Adds a table in the database dedicated to SyncSourceIds entries.
After drush run it make to fail all updates with text:

> [notice] Update started: migrate_tools_update_10000
> [error] Table 'migrate_tools_sync_source_ids' already exists.
> [error] Update failed: migrate_tools_update_10000
[error] Update aborted by: migrate_tools_update_10000
[error] Finished performing updates.

Steps to reproduce

  1. Pull database from prod which is running migrate_tools version 6.0.4
  2. Run updates locally from version 6.0.4 to version 6.0.5 (according to composer.lock)
  3. `drush updb` is throwing:

    > [notice] Update started: migrate_tools_update_10000
    > [error] Table 'migrate_tools_sync_source_ids' already exists.
    > [error] Update failed: migrate_tools_update_10000

Proposed resolution

Needs to add a check if table not exists into the update hook migrate_tools_update_10000.

🐛 Bug report
Status

Active

Version

6.0

Component

Code

Created by

🇲🇩Moldova vadim.hirbu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024