You are here

function wordpress_migrate_update_7008 in WordPress Migrate 7.2

Track the fid of each attachment, for rewriting to media tags.

File

./wordpress_migrate.install, line 345
WordPress migration module installation

Code

function wordpress_migrate_update_7008() {
  if (!db_field_exists('wordpress_migrate_attachment', 'new_fid')) {
    db_add_field('wordpress_migrate_attachment', 'new_fid', array(
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => FALSE,
      'description' => 'File ID of the attachment',
    ));
  }
}