You are here

function migrate_update_6009 in Migrate 6

File

./migrate.install, line 435
Implementation of profile destination handling

Code

function migrate_update_6009() {
  drupal_load('module', 'migrate');
  $ret = array();

  // Add needs_update flag to each mapping table
  $result = db_query('SELECT mcsid FROM {migrate_content_sets}');
  while ($row = db_fetch_object($result)) {
    $maptable = migrate_map_table_name($row->mcsid);
    if (db_table_exists($maptable)) {
      db_add_field($ret, $maptable, 'needs_update', array(
        'type' => 'int',
        'size' => 'tiny',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => (int) FALSE,
      ));
    }
  }
  return $ret;
}