You are here

function migrate_update_6011 in Migrate 6

Use 'created' instead of 'date' for node import

File

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

Code

function migrate_update_6011() {
  $ret = array();
  db_query("UPDATE {migrate_content_mappings}\n            SET destfield='created'\n            WHERE destfield='date' AND mcsid IN\n              (SELECT mcsid FROM {migrate_content_sets} WHERE contenttype='node')");
  return $ret;
}