Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate:import --delete flag not functioning in 11.x #5062

Open
chrisolof opened this issue Feb 3, 2022 · 0 comments · May be fixed by #5063
Open

migrate:import --delete flag not functioning in 11.x #5062

chrisolof opened this issue Feb 3, 2022 · 0 comments · May be fixed by #5063

Comments

@chrisolof
Copy link

Describe the bug
After upgrading to Drush 11.x, migrate:import's --delete flag seems to have no effect and missing source rows are never rolled back.

To Reproduce
Upgrade from Drush 10.x to 11.x.
Remove some rows from source.
Run migrate:import with the --delete flag
Missing records are not rolled back.

Expected behavior
When running migrate:import with the --delete flag, I expected missing source rows to be deleted.

Actual behavior
Missing source rows were not deleted. Runs as if the --delete flag is not present.

Workaround
Downgrade to Drush 10.x.

System Configuration

Q A
Drush version? 11.0.4
Drupal version? 9.3.3
PHP version 7.4
OS? Linux
chrisolof added a commit to chrisolof/drush that referenced this issue Feb 3, 2022
Dispatch the event name onMissingSourceRows is listening for.

drush-opsgh-5062
@chrisolof chrisolof linked a pull request Feb 3, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants