All migrations are processed using a CSV source located in web/modules/custom/gos_migrate/source
.
The original source of this CSV file is a Google Spreadsheet accessible there: https://docs.google.com/spreadsheets/d/1pWOGpADxvNEWcYnpTFpCyhS9rtIjCYgIdZmBppDkC2Q/edit#gid=2060099049
Before starting a migration,
$ drush pmu gos_migrate -y && drush en gos_migrate -y
$ drush eshd -y && drush eshs && drush eshr && drush queue-run elasticsearch_helper_indexing && drush cr
- Migrate all platforms (Playstation 4, macOS, Xbox, ...)
$ drush mim gos_platforms
- Migrate all genres (Adventure, Sport, ...)
$ drush mim gos_genres
- Migrate all locations (Zürich, Fribourg, ...)
$ drush mim gos_locations
- Migrate all studios with appropriates team-member(s)
$ drush mim gos_studios
- Migrate all games that include: platforms (on the-fly-creation) & studios (lookup).
$ drush mim gos_games
- Run a full Elasticsearch indexation process
$ drush eshr && drush queue-run elasticsearch_helper_indexing && drush cr
- Migrate all games that include: platforms (on the-fly-creation) & studios (lookup).
$ drush mim gos_games_update_website
- Migrate all games' canton and attached them to proper games.
$ drush mim gos_cantons
$ drush mim gos_games_update_canton
- Run a full Elasticsearch indexation process
$ drush eshr && drush queue-run elasticsearch_helper_indexing && drush cr
List the migrations with drush ms
Limit a migration with drush mi [migration_name] --limit=2
Rollback your change with drush mr [migration_name]
Migration [migration_name] is busy with another operation: Importing [error]
You just need to reset this migration using
$ drush mrs [migration_name]