composer update
This commit is contained in:
parent
f6abc3dce2
commit
71dfaca858
1753 changed files with 45274 additions and 14619 deletions
|
@ -208,7 +208,14 @@ class MigrationPluginManager extends DefaultPluginManager implements MigrationPl
|
|||
$migration->set('requirements', $required_dependency_graph[$migration_id]['paths']);
|
||||
}
|
||||
}
|
||||
array_multisort($weights, SORT_DESC, SORT_NUMERIC, $migrations);
|
||||
// Sort weights, labels, and keys in the same order as each other.
|
||||
array_multisort(
|
||||
// Use the numerical weight as the primary sort.
|
||||
$weights, SORT_DESC, SORT_NUMERIC,
|
||||
// When migrations have the same weight, sort them alphabetically by ID.
|
||||
array_keys($migrations), SORT_ASC, SORT_NATURAL,
|
||||
$migrations
|
||||
);
|
||||
|
||||
return $migrations;
|
||||
}
|
||||
|
|
|
@ -584,7 +584,7 @@ class Sql extends PluginBase implements MigrateIdMapInterface, ContainerFactoryP
|
|||
|
||||
if (!empty($source_id_values)) {
|
||||
$var_dump = var_export($source_id_values, TRUE);
|
||||
throw new MigrateException(sprintf("Extra unknown items in source IDs: %s", $var_dump));
|
||||
throw new MigrateException(sprintf("Extra unknown items for map %s in source IDs: %s", $this->mapTableName(), $var_dump));
|
||||
}
|
||||
|
||||
$query = $this->getDatabase()->select($this->mapTableName(), 'map')
|
||||
|
|
|
@ -82,7 +82,8 @@ use Drupal\migrate\Row;
|
|||
* @endcode
|
||||
*
|
||||
* If the source value was '2004-12-19T10:19:42-0600' the transformed value
|
||||
* would be 2004-12-19T10:19:42.
|
||||
* would be 2004-12-19T10:19:42. Set validate_format to false if your source
|
||||
* value is '0000-00-00 00:00:00'.
|
||||
*
|
||||
* @see \DateTime::createFromFormat()
|
||||
* @see \Drupal\Component\Datetime\DateTimePlus::__construct()
|
||||
|
@ -99,7 +100,7 @@ class FormatDate extends ProcessPluginBase {
|
|||
* {@inheritdoc}
|
||||
*/
|
||||
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
|
||||
if (empty($value)) {
|
||||
if (empty($value) && $value !== '0' && $value !== 0) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
|
@ -353,7 +353,7 @@ abstract class SourcePluginBase extends PluginBase implements MigrateSourceInter
|
|||
|
||||
$row_data = $this->getIterator()->current() + $this->configuration;
|
||||
$this->fetchNextRow();
|
||||
$row = new Row($row_data, $this->migration->getSourcePlugin()->getIds(), $this->migration->getDestinationIds());
|
||||
$row = new Row($row_data, $this->getIds());
|
||||
|
||||
// Populate the source key for this row.
|
||||
$this->currentSourceIds = $row->getSourceIdValues();
|
||||
|
|
|
@ -108,6 +108,11 @@ abstract class SqlBase extends SourcePluginBase implements ContainerFactoryPlugi
|
|||
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state) {
|
||||
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
|
||||
$this->state = $state;
|
||||
// If we are using high water, but haven't yet set a high water mark, skip
|
||||
// joining the map table, as we want to get all available records.
|
||||
if ($this->getHighWaterProperty() && $this->getHighWater() === NULL) {
|
||||
$this->configuration['ignore_map'] = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -322,7 +327,9 @@ abstract class SqlBase extends SourcePluginBase implements ContainerFactoryPlugi
|
|||
if ($this->getHighWaterProperty()) {
|
||||
$high_water_field = $this->getHighWaterField();
|
||||
$high_water = $this->getHighWater();
|
||||
if ($high_water) {
|
||||
// We check against NULL because 0 is an acceptable value for the high
|
||||
// water mark.
|
||||
if ($high_water !== NULL) {
|
||||
$conditions->condition($high_water_field, $high_water, '>');
|
||||
$condition_added = TRUE;
|
||||
}
|
||||
|
|
Reference in a new issue