Drupal Migrate Dumps

Component ID

2405029

Component name

Drupal Migrate Dumps

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This is the repo that is required to be used when building the table dumps for Drupal 8 Migrate tests.

Instructions

  • Clone the repository from: https://www.drupal.org/sandbox/benjy/2405029
  • Create a database called d6_migrate and import dump from core/modules/migrate_drupal/src/Tests/d6.gz
  • Add an entry into your D8 settings file. Eg
    $databases['d6_migrate']['default'] = array (
      'database' => 'd6',
      'username' => 'root',
      'password' => '',
      'prefix' => '',
      'host' => 'mysql',
      'port' => '',
      'namespace' => 'Drupal\Core\Database\Driver\mysql',
      'driver' => 'mysql',
    );
    
  • For D6 do create a settings file with the Database configuration
    cp sites/default/default.settings.php sites/default/settings.php
    echo "db_url = 'mysql://root@localhost/d6_migrate';" >> sites/default/settings.php
    
  • Login to the D6 site, make changes as required.
  • Run ./cores/scripts/migrate-dump.sh to re-export the tables.