From 4a0cd34753e0e405d34c472f4694223153269350 Mon Sep 17 00:00:00 2001 From: Dave Macaulay Date: Fri, 15 Feb 2019 14:48:31 +0100 Subject: [PATCH] MC-14947: Product description does not default to Page Builder on fresh install - Move product attribute updater back into main module --- .../Setup/Patch/Data/UpdateProductAttribute.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) rename app/code/Magento/{PageBuilderDataMigration => PageBuilder}/Setup/Patch/Data/UpdateProductAttribute.php (84%) diff --git a/app/code/Magento/PageBuilderDataMigration/Setup/Patch/Data/UpdateProductAttribute.php b/app/code/Magento/PageBuilder/Setup/Patch/Data/UpdateProductAttribute.php similarity index 84% rename from app/code/Magento/PageBuilderDataMigration/Setup/Patch/Data/UpdateProductAttribute.php rename to app/code/Magento/PageBuilder/Setup/Patch/Data/UpdateProductAttribute.php index e172a279380..8363771a86f 100644 --- a/app/code/Magento/PageBuilderDataMigration/Setup/Patch/Data/UpdateProductAttribute.php +++ b/app/code/Magento/PageBuilder/Setup/Patch/Data/UpdateProductAttribute.php @@ -6,16 +6,15 @@ declare(strict_types=1); -namespace Magento\PageBuilderDataMigration\Setup\Patch\Data; +namespace Magento\PageBuilder\Setup\Patch\Data; use Magento\Framework\Setup\Patch\DataPatchInterface; use Magento\Framework\Setup\ModuleDataSetupInterface; /** - * Patch is mechanism, that allows to do atomic upgrade data changes + * Update description product attribute to by default enable Page Builder */ -class UpdateProductAttribute implements - DataPatchInterface +class UpdateProductAttribute implements DataPatchInterface { /** * @var ModuleDataSetupInterface $moduleDataSetup @@ -40,7 +39,7 @@ public function __construct( } /** - * Do Upgrade + * Modify EAV tables to update description attribute page builder enabled value * * @return void */ @@ -72,6 +71,6 @@ public function getAliases() */ public static function getDependencies() { - return [MigrateToPageBuilder::class]; + return []; } }