uc6_product_variation.yml in Commerce Migrate 8.2
Same filename and directory in other branches
modules/ubercart/migrations/uc6_product_variation.yml
File
modules/ubercart/migrations/uc6_product_variation.ymlView source
- id: uc6_product_variation
- label: Migrate product variations from Ubercart
- migration_tags:
- - Drupal 6
- - Ubercart
- - Content
- source:
- plugin: uc6_product_variation
- process:
- type:
- -
- plugin: migration_lookup
- migration: uc6_product_variation_type
- source: type
- -
- plugin: default_value
- # 'default' is the default 'commerce_product_variation' bundle initially
- # installed
- default_value: default
- uid: node_uid
- sku: model
- title: title
- 'price/number': sell_price
- 'price/currency_code': currency
- # The product_id field is NULL after this migration.
- # It is a backreference to the product ID. The product entity class's
- # postSave() updates this whenever a product entity is saved, therefore a
- # subsequent product migration will set this on the product variations created
- # by this migration.
- #product_id:
- status: status
- created: created
- changed: changed
- destination:
- plugin: entity:commerce_product_variation
- destination_module: commerce_product
- migration_dependencies:
- required:
- - uc6_attribute_field_instance