Skip to content

migrate:rollback

Rollback one or more migrations.

Examples

  • migrate:rollback --all. Rollback all migrations
  • migrate:rollback --all --no-progress. Rollback all migrations but avoid the progress bar
  • migrate:rollback --tag=user,main_content. Rollback all migrations tagged with user and main_content tags
  • migrate:rollback classification,article. Rollback terms and nodes imported by classification and article migrations
  • migrate: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

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.