You are here

function migrate_content_set_update in Migrate 6

Prepare a content set for updating of existing items

Parameters

$mcsid: ID of the content set to update

3 calls to migrate_content_set_update()
MigrateNodeTest::testNodeProcessing in tests/modules/core/migrate_node.test
Test UI for processing
migrate_content_process_batch in ./migrate.module
Process all enabled migration processes in a browser, using the Batch API to break it into manageable chunks.
_drush_migrate_do_import in ./migrate.drush.inc

File

./migrate.module, line 1001
This module provides tools at "administer >> content >> migrate" for analyzing data from various sources and importing them into Drupal tables.

Code

function migrate_content_set_update($mcsid) {
  $maptable = migrate_map_table_name($mcsid);
  db_query('UPDATE {' . $maptable . '} SET needs_update=1');
  $msgtable = migrate_message_table_name($mcsid);
  db_query('TRUNCATE TABLE {' . $msgtable . '}');
}