Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
#2876085: Before upgrading, audit for potential ID conflicts added the ability for migrations to identify when the migration may result in ID collisions and data loss.
This is warned when running via the UI.
We should warn via drush too.
Proposed resolution
Prompt user to confirm they wish to continue.
Comments
Comment #2
xjmI'm not sure if
-y
by itself is a good idea since 95% of the prompts are "Yes, that is what I said" rather than "Yes, I want to do something dangerous." I got in the (bad) habit of passing-y
to site maintenance tasks that incessantly prompt you to things that aren't really risky or disruptive and it's pure muscle memory. I'd imagine many others have the same habit.Do we have another example of Drush separating those things from badness things? Ideas?
This is probably major; maybe not critical since it's mitigated by Migrate UI being in core but Migrate Drush not being part of Drush core yet. That gives us more points where the site owner can avoid the data loss.
Comment #3
jibranShould we move this to https://www.drupal.org/project/migrate_run as per https://twitter.com/eli_t/status/970366849438420993?
Comment #4
Eli-TSeems reasonable assuming Migrate Run doesn't already do so.
In the meantime, marking this as Won't Fix.