Created
May 18, 2015 14:33
-
-
Save batigolix/4d798583c8579b604c87 to your computer and use it in GitHub Desktop.
Programmatically run a migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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