I'm trying to migrate from a SQL table using migrate module. The fields in the table are a unique file hash (media), an url, a drupal internal path. In the class extending SqlBase I have this function:
public function getIds() {
// The row property that represent the unique id for the id map.
$ids['media'] = array(
'type' => 'integer',
'alias' => 'm');
return $ids;
}
It seems that migrate only accepts integers and requires ids to fill its migration map. Is there a way to migrate with a string hash or without any id?