Closed (fixed)
Project:
Migrate
Version:
7.x-2.x-dev
Component:
Drush
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 Feb 2010 at 18:49 UTC
Updated:
8 Aug 2011 at 01:38 UTC
Supports groupings of migrations which can easily be run together. Similar to lists like structure-tables and skip-tables in sql commands.
Comments
Comment #1
mikeryanComment #2
mikeryanBump... This concept is more interesting to me now in the context of #989200: Dynamic migrations (and the project that inspired it). Although I would like to see an implementation of grouping in the module itself, rather than just in drush. E.g., separate the groups on the migrate_ui dashboard (tabs? fieldsets?)...
Comment #3
mikeryanComment #4
mikeryanI've committed support for migration groups to D6 and D7. You can declare your migration to be part of a group by passing a group instance to the Migration(Base) constructor:
This makes ExampleMigration a part of the 'example' group. If you pass no argument to parent::__construct(), your migration will be part of the 'default' group. You may also pass an optional array of group names as the second argument to MigrateGroup::getInstance(), so this group will be ordered after those groups. See wine.inc in migrate_example for a concrete example.
You can then run all the migrations in a given group with one command:
drush migrate-status, and the migrate_ui dashboard, will order migrations according to the defined groups and their dependencies.
Comment #5
parallax commentedStrange, that doesn't work for me.
Error Message: PHP Fatal error: Class 'MigrateGroup' not found in /Users/trick/Sites/bt/sites/all/modules/custom/bt_redaktion/bt_redaktion.module on line 5
In fact, I can't find any MigrateGroup Class.
Comment #6
mikeryan@patrick.sifneos: What precise version of migrate are you using? Are you using 2.2 RC1, or a -dev version pulled since July 10? And, assuming you have pulled a new version of Migrate since then, did you do a "drush cc all" to make sure the code registry was rebuilt and new classes recognized? Do you have the file includes/group.inc?
Comment #7
mikeryanNo further info provided.