You are here

function migrate_example_beer_schema_topic_node in Migrate Plus 8

Same name and namespace in other branches
  1. 8.5 migrate_example/migrate_example_setup/migrate_example_setup.install \migrate_example_beer_schema_topic_node()
  2. 8.2 migrate_example/migrate_example_setup/migrate_example_setup.install \migrate_example_beer_schema_topic_node()
  3. 8.3 migrate_example/migrate_example_setup/migrate_example_setup.install \migrate_example_beer_schema_topic_node()
  4. 8.4 migrate_example/migrate_example_setup/migrate_example_setup.install \migrate_example_beer_schema_topic_node()
1 call to migrate_example_beer_schema_topic_node()
migrate_example_setup_schema in migrate_example/migrate_example_setup/migrate_example_setup.install
@file Set up source data and destination configuration for the migration example module. We do this in a separate module so migrate_example itself is a pure migration module.

File

migrate_example/migrate_example_setup/migrate_example_setup.install, line 132
Set up source data and destination configuration for the migration example module. We do this in a separate module so migrate_example itself is a pure migration module.

Code

function migrate_example_beer_schema_topic_node() {
  return array(
    'description' => 'Beers topic pairs.',
    'fields' => array(
      'bid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'description' => 'Beer ID.',
      ),
      'style' => array(
        'type' => 'varchar_ascii',
        'length' => 255,
        'not null' => TRUE,
        'description' => 'Topic name',
      ),
    ),
    'primary key' => array(
      'style',
      'bid',
    ),
  );
}