function wordpress_migrate_schema_attachment in WordPress Migrate 7
Same name and namespace in other branches
- 7.2 wordpress_migrate.install \wordpress_migrate_schema_attachment()
2 calls to wordpress_migrate_schema_attachment()
- wordpress_migrate_schema in ./
wordpress_migrate.install - @file WordPress migration module installation
- wordpress_migrate_update_7002 in ./
wordpress_migrate.install - Add the wordpress_migrate_attachment table.
File
- ./
wordpress_migrate.install, line 48 - WordPress migration module installation
Code
function wordpress_migrate_schema_attachment() {
return array(
'description' => 'Map original attachment URL to Drupal URI',
'fields' => array(
'filename' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'Filename of XML imported by this migration',
),
'original_url' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'URL of attachment on WordPress',
),
'new_uri' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'URI of attachment on Drupal',
),
),
'primary key' => array(
'filename',
'original_url',
),
);
}