Skip to content

Instantly share code, notes, and snippets.

@batigolix
Created May 18, 2015 14:33
Show Gist options
  • Save batigolix/4d798583c8579b604c87 to your computer and use it in GitHub Desktop.
Save batigolix/4d798583c8579b604c87 to your computer and use it in GitHub Desktop.
Programmatically run a migration
// Imports country flags.
$machine_name = 'EUCountries';
migrate_static_registration(array($machine_name));
$migration = Migration::getInstance($machine_name);
$migration->prepareUpdate();
$result = $migration->processImport();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment