Enable hash value / track_changes option in Migrate

Public

Starting from version 2.6 Migrate supports hash based source changes tracking. Here's an example how to enable this option:

</> CopyGet raw version
php
  1. class ExampleNodeMigration extends Migration {
  2. public function __construct($arguments) {
  3. parent::__construct($arguments);
  4. $options = array('track_changes' => 1);
  5. $this->source = new MigrateSourceSQL($this->query(), $this->fields(), NULL, $options);
  6. }

Comments

sebas5384's picture

Hey! thanks por the snippet! but in my case is an csv destination type.
Do you know how to force to update every time its imported?
thanks!