function migrate_example_beer_schema_legacy_urls in Migrate 7.2
Same name and namespace in other branches
- 6.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 289 - 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,
),
),
),
);
}