migrate:rollback¶
10.4+
Rollback one or more migrations.
Examples¶
migrate:rollback --all
. Rollback all migrationsmigrate:rollback --all --no-progress
. Rollback all migrations but avoid the progress barmigrate:rollback --tag=user,main_content
. Rollback all migrations tagged with user and main_content tagsmigrate:rollback classification,article
. Rollback terms and nodes imported by classification and article migrationsmigrate:rollback user --idlist=5
. Rollback imported user record with source ID 5
Arguments¶
- [migrationIds]. Comma-separated list of migration IDs.
Options¶
- --all. Process all migrations.
- --tag=TAG. A comma-separated list of migration tags to rollback
- --feedback=FEEDBACK. Frequency of progress messages, in items processed
- --idlist=IDLIST. Comma-separated list of IDs to rollback. As an ID may have more than one column, concatenate the columns with the colon ':' separator
- --progress[=PROGRESS]. Show progress bar [default: 1]
- --no-progress. Negate --progress option.
Topics¶
- Defining and running migrations. (docs:migrate)
Aliases¶
- mr
- migrate-rollback
Legend
- An argument or option with square brackets is optional.
- Any default value is listed at end of arg/option description.
- An ellipsis indicates that an argument accepts multiple values separated by a space.