From 10b9fbfca45619e63ad558258d8926f09238ab69 Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Mon, 25 Mar 2024 17:03:01 +0100 Subject: [PATCH 1/3] [ECP-8984] Remove setup_version definition --- etc/module.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/module.xml b/etc/module.xml index b345122da..2b504dd98 100755 --- a/etc/module.xml +++ b/etc/module.xml @@ -12,7 +12,7 @@ --> - + From 39e05bbdbb427cf67935776f189a119bdc03ab06 Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Mon, 25 Mar 2024 17:03:11 +0100 Subject: [PATCH 2/3] [ECP-8984] Remove unused import --- Setup/Patch/Data/VaultMigration.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Setup/Patch/Data/VaultMigration.php b/Setup/Patch/Data/VaultMigration.php index 7d8769f36..baa668808 100644 --- a/Setup/Patch/Data/VaultMigration.php +++ b/Setup/Patch/Data/VaultMigration.php @@ -19,7 +19,6 @@ use Magento\Framework\Setup\ModuleDataSetupInterface; use Magento\Framework\Setup\Patch\DataPatchInterface; use Magento\Vault\Api\Data\PaymentTokenFactoryInterface; -use Magento\Vault\Api\Data\PaymentTokenInterface; use Magento\Vault\Api\PaymentTokenManagementInterface; use Magento\Vault\Api\PaymentTokenRepositoryInterface; From 0dd9aa73a8a553bb6a4937d177cf02eb1c2babc2 Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Mon, 25 Mar 2024 17:03:29 +0100 Subject: [PATCH 3/3] [ECP-8984] Remove version constraints from data patches --- Setup/Patch/Data/CreateStatusAuthorized.php | 8 +------- Setup/Patch/Data/CreditCardsBecomeCards.php | 10 +--------- Setup/Patch/Data/RatepayIdConfiguration.php | 8 +------- .../Data/RemoveMinMaxOrderConfigMigration.php | 15 +-------------- 4 files changed, 4 insertions(+), 37 deletions(-) diff --git a/Setup/Patch/Data/CreateStatusAuthorized.php b/Setup/Patch/Data/CreateStatusAuthorized.php index 9e8fef755..a30495f71 100644 --- a/Setup/Patch/Data/CreateStatusAuthorized.php +++ b/Setup/Patch/Data/CreateStatusAuthorized.php @@ -15,7 +15,6 @@ use Magento\Framework\Exception\AlreadyExistsException; use Magento\Framework\Setup\ModuleDataSetupInterface; use Magento\Framework\Setup\Patch\DataPatchInterface; -use Magento\Framework\Setup\Patch\PatchVersionInterface; use Magento\Framework\App\Config\ReinitableConfigInterface; use Magento\Framework\App\Config\Storage\WriterInterface; use Magento\Sales\Model\Order; @@ -23,7 +22,7 @@ use Magento\Sales\Model\ResourceModel\Order\StatusFactory as StatusResourceFactory; use Magento\Sales\Model\ResourceModel\Order\Status as StatusResource; -class CreateStatusAuthorized implements DataPatchInterface, PatchVersionInterface +class CreateStatusAuthorized implements DataPatchInterface { private ModuleDataSetupInterface $moduleDataSetup; private WriterInterface $configWriter; @@ -103,9 +102,4 @@ public static function getDependencies(): array { return []; } - - public static function getVersion(): string - { - return '9.0.3'; - } } diff --git a/Setup/Patch/Data/CreditCardsBecomeCards.php b/Setup/Patch/Data/CreditCardsBecomeCards.php index 6831b7a52..413c8c2a1 100644 --- a/Setup/Patch/Data/CreditCardsBecomeCards.php +++ b/Setup/Patch/Data/CreditCardsBecomeCards.php @@ -6,7 +6,7 @@ use Magento\Framework\Setup\Patch\DataPatchInterface; use Magento\Framework\Setup\Patch\PatchVersionInterface; -class CreditCardsBecomeCards implements DataPatchInterface, PatchVersionInterface +class CreditCardsBecomeCards implements DataPatchInterface { private ModuleDataSetupInterface $moduleDataSetup; @@ -65,12 +65,4 @@ public static function getDependencies() { return []; } - - /** - * @inheritDoc - */ - public static function getVersion() - { - return '9.0.5'; - } } diff --git a/Setup/Patch/Data/RatepayIdConfiguration.php b/Setup/Patch/Data/RatepayIdConfiguration.php index ef86431df..5bc7e99b6 100644 --- a/Setup/Patch/Data/RatepayIdConfiguration.php +++ b/Setup/Patch/Data/RatepayIdConfiguration.php @@ -15,9 +15,8 @@ use Magento\Framework\App\Config\Storage\WriterInterface; use Magento\Framework\Setup\ModuleDataSetupInterface; use Magento\Framework\Setup\Patch\DataPatchInterface; -use Magento\Framework\Setup\Patch\PatchVersionInterface; -class RatepayIdConfiguration implements DataPatchInterface, PatchVersionInterface +class RatepayIdConfiguration implements DataPatchInterface { private ModuleDataSetupInterface $moduleDataSetup; private WriterInterface $configWriter; @@ -96,9 +95,4 @@ public static function getDependencies(): array { return []; } - - public static function getVersion(): string - { - return '9.0.0'; - } } diff --git a/Setup/Patch/Data/RemoveMinMaxOrderConfigMigration.php b/Setup/Patch/Data/RemoveMinMaxOrderConfigMigration.php index b35ed1d60..fdce2052f 100644 --- a/Setup/Patch/Data/RemoveMinMaxOrderConfigMigration.php +++ b/Setup/Patch/Data/RemoveMinMaxOrderConfigMigration.php @@ -2,23 +2,18 @@ namespace Adyen\Payment\Setup\Patch\Data; -use Magento\Framework\App\Config\ReinitableConfigInterface; use Magento\Framework\Setup\ModuleDataSetupInterface; use Magento\Framework\Setup\Patch\DataPatchInterface; -use Magento\Framework\Setup\Patch\PatchVersionInterface; -class RemoveMinMaxOrderConfigMigration implements DataPatchInterface, PatchVersionInterface +class RemoveMinMaxOrderConfigMigration implements DataPatchInterface { private ModuleDataSetupInterface $moduleDataSetup; - private ReinitableConfigInterface $reinitableConfig; public function __construct( ModuleDataSetupInterface $moduleDataSetup, - ReinitableConfigInterface $reinitableConfig ) { $this->moduleDataSetup = $moduleDataSetup; - $this->reinitableConfig = $reinitableConfig; } /** @@ -67,12 +62,4 @@ public static function getDependencies() { return []; } - - /** - * @inheritDoc - */ - public static function getVersion() - { - return '9.0.0'; - } }