public function Sql::prepareUpdate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Plugin/migrate/id_map/Sql.php \Drupal\migrate\Plugin\migrate\id_map\Sql::prepareUpdate()
Prepares to run a full update.
Prepares this migration to run as an update - that is, in addition to unmigrated content (source records not in the map table) being imported, previously-migrated content will also be updated in place by marking all previously-imported content as ready to be re-imported.
Overrides MigrateIdMapInterface::prepareUpdate
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ Sql.php, line 594 - Contains \Drupal\migrate\Plugin\migrate\id_map\Sql.
Class
- Sql
- Defines the sql based ID map implementation.
Namespace
Drupal\migrate\Plugin\migrate\id_mapCode
public function prepareUpdate() {
$this
->getDatabase()
->update($this
->mapTableName())
->fields(array(
'source_row_status' => MigrateIdMapInterface::STATUS_NEEDS_UPDATE,
))
->execute();
}