You are here

function migrate_example_beer_schema_legacy_urls in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 migrate_example/beer.install.inc \migrate_example_beer_schema_legacy_urls()
1 call to migrate_example_beer_schema_legacy_urls()
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 288
Set up for the beer (basic) example.

Code

function migrate_example_beer_schema_legacy_urls() {
  return array(
    'description' => 'Stores legacy paths and destination ids for redirection.',
    'fields' => array(
      'id' => array(
        'type' => 'int',
        'not null' => TRUE,
        'description' => 'Primary Key: ID.',
      ),
      'migration_name' => array(
        'type' => 'varchar',
        'length' => 50,
        'not null' => TRUE,
        'default' => '',
      ),
      'source_id' => array(
        'type' => 'int',
        'not null' => FALSE,
      ),
      'source_uri' => array(
        'type' => 'varchar',
        'length' => 500,
        'not null' => FALSE,
      ),
      'modificationdatetime' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'ID',
    ),
    'indexes' => array(
      'source_uri' => array(
        array(
          'source_uri',
          255,
        ),
      ),
    ),
  );
}