Skip to content
Snippets Groups Projects
Commit b0c9fbdf authored by Fran Garcia-Linares's avatar Fran Garcia-Linares
Browse files

Same timestamp allowed.

parent c0a090a1
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ class DrupalOrgUser extends User {
// drush state:set drupalorg_migrate.drupalorg_migrate_users_last_record 0 --input-format=integer
$last_record = \Drupal::state()->get('drupalorg_migrate.drupalorg_migrate_users_last_record');
if (!is_null($last_record)) {
$this->query->condition('u.changed', $last_record, '>');
$this->query->condition('u.changed', $last_record, '>=');
$this->query->orderBy('u.changed');
}
// Set the time when the query was made in case we don't get any row processed.
......@@ -102,7 +102,7 @@ class DrupalOrgUser extends User {
// 2. Explicitly set to update.
// 3. The row is newer than the last processed row.
// 4. If no such property exists then try by checking the hash of the row.
if (!$row->getIdMap() || $row->needsUpdate() || ($row->getSourceProperty('changed') > $last_record) || $this->rowChanged($row)) {
if (!$row->getIdMap() || $row->needsUpdate() || ($row->getSourceProperty('changed') >= $last_record) || $this->rowChanged($row)) {
$this->currentRow = $row->freezeSource();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment