added highwater mark to currently developed migration, added migrate shell script for auto deployement

This commit is contained in:
2019-02-05 15:36:36 +01:00
parent 72c16f90cf
commit 84ec532b6d
21 changed files with 95 additions and 38 deletions

View File

@@ -11,6 +11,9 @@ deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
source:
plugin: d7_node_breve
node_type: breve
high_water_property:
name: changed
alias: n
destination:
plugin: entity:node
@@ -22,6 +25,9 @@ process:
plugin: default_value
default_value: breve
title: title
created: created
changed: changed
field_migration:
plugin: default_value
default_value: 'migration_imported'

View File

@@ -12,6 +12,9 @@ source:
plugin: d7_node_breve_i18n
node_type: breve
translations: true
high_water_property:
name: changed
alias: n
destination:
plugin: entity:node
@@ -29,6 +32,8 @@ process:
langcode: language
content_translation_source: source
title: title
created: created
changed: changed
body:
plugin: iterator
source: body

View File

@@ -11,6 +11,9 @@ migration_tags:
source:
plugin: d7_node_materiau
node_type: materiau
high_water_property:
name: changed
alias: n
destination:
plugin: entity:node
@@ -22,6 +25,9 @@ process:
plugin: default_value
default_value: materiau
title: title
created: created
changed: changed
field_short_description: field_nature_titre
field_migration:
plugin: default_value

View File

@@ -12,6 +12,9 @@ source:
plugin: d7_node_materiau_i18n
node_type: materiau
translations: true
high_water_property:
name: changed
alias: n
destination:
plugin: entity:node
@@ -29,6 +32,9 @@ process:
langcode: language
content_translation_source: source
title: title
created: created
changed: changed
field_short_description: field_nature_titre
body:
plugin: iterator

View File

@@ -99,12 +99,6 @@ class D7NodeBreve extends FieldableEntity {
$query->condition('n.type', $this->configuration['node_type']);
}
$this->highwaterField = array(
'name' => 'changed',
'alias' => 'n',
'type' => 'int',
);
return $query;
}

View File

@@ -27,8 +27,6 @@ class D7NodeBreveI18n extends FieldableEntity {
'source',
'uid',
'status',
'created',
'changed',
])
->fields('n', [
'nid',
@@ -36,6 +34,7 @@ class D7NodeBreveI18n extends FieldableEntity {
'type',
'promote',
'sticky',
'created',
'changed',
])
->fields('nr', [
@@ -44,7 +43,7 @@ class D7NodeBreveI18n extends FieldableEntity {
])
->condition('et.entity_type', 'node')
->condition('et.source', '', '<>')
->orderBy('changed');
->orderBy('n.changed');
$query->addField('nr', 'uid', 'revision_uid');
@@ -55,12 +54,6 @@ class D7NodeBreveI18n extends FieldableEntity {
$query->condition('n.type', $this->configuration['node_type']);
}
$this->highwaterField = array(
'name' => 'changed',
'alias' => 'n',
'type' => 'int',
);
return $query;
}

View File

@@ -81,7 +81,7 @@ class D7NodeMateriau extends FieldableEntity {
'log',
'timestamp',
])
->orderBy('nid');
->orderBy('changed');
$query->addField('n', 'uid', 'node_uid');
$query->addField('nr', 'uid', 'revision_uid');

View File

@@ -27,8 +27,6 @@ class D7NodeMateriauI18n extends FieldableEntity {
'source',
'uid',
'status',
'created',
'changed',
])
->fields('n', [
'nid',
@@ -36,13 +34,16 @@ class D7NodeMateriauI18n extends FieldableEntity {
'type',
'promote',
'sticky',
'created',
'changed',
])
->fields('nr', [
'log',
'timestamp',
])
->condition('et.entity_type', 'node')
->condition('et.source', '', '<>');
->condition('et.source', '', '<>')
->orderBy('n.changed');
$query->addField('nr', 'uid', 'revision_uid');