treestone/postmigration

Treestone 扩展,用于 M1 到 M2 迁移后运行

0.0.6 2020-01-20 01:52 UTC

This package is auto-updated.

Last update: 2024-09-22 01:01:13 UTC


README

在使用 Magento 数据迁移工具时,如果迁移的商店有默认属性集,迁移工具运行时将创建一个新的属性集,称为 'Migration_Default'。在这个新的属性集中,它将创建如 'Migration_Prices' 这样的组。网站上的默认属性集将保持为最初的默认属性集。

此模块旨在在迁移后使用,它将执行以下操作

  • 将 'Migration_Default' 属性集设置为默认属性集。
  • 删除初始的 'Default' 属性集。
  • 将 'Migration_Default' 属性集重命名为 'Default'。
  • 删除空属性组(如果迁移的商店有组而你忽略了该组中的所有属性,可能会发生这种情况)。
  • 将属性组从 'Migration_{groupName}' 重命名为 '{groupName}'

安装

将包添加到您的 composer.json 中

composer require treestone/postmigration

启用并安装模块

bin/magento module:enable Treestone_Postmigration

使用方法

目前,此应用程序仅包含一个单行 CLI 命令

bin/magento treestone:postmigration:attributesets

事实

  • 我仅在 Magento 2.2.3 上进行了测试
  • 这将删除初始默认属性集 - 因此请谨慎使用
  • 这是为我们的特定迁移开发的

支持

如果您遇到任何问题 - 欢迎提出问题

贡献

欢迎任何贡献 :)