You are here

function migrate_example_beer_schema_topic in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 migrate_example/beer.install.inc \migrate_example_beer_schema_topic()
1 call to migrate_example_beer_schema_topic()
migrate_example_beer_schema in migrate_example/beer.install.inc
@file Set up for the beer (basic) example.

File

migrate_example/beer.install.inc, line 118
Set up for the beer (basic) example.

Code

function migrate_example_beer_schema_topic() {
  return array(
    'description' => 'Categories',
    'fields' => array(
      'style' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'details' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
      ),
      'style_parent' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
        'description' => 'Parent topic, if any',
      ),
      'region' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
        'description' => 'Region first associated with this style',
      ),
      'hoppiness' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
        'description' => 'Relative hoppiness of the beer',
      ),
    ),
    'primary key' => array(
      'style',
    ),
  );
}