Skip to content

Commit

Permalink
[ECP-8984] Remove version constraints from data patches
Browse files Browse the repository at this point in the history
  • Loading branch information
Can Demiralp committed Mar 25, 2024
1 parent 39e05bb commit 0dd9aa7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 37 deletions.
8 changes: 1 addition & 7 deletions Setup/Patch/Data/CreateStatusAuthorized.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
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;
use Magento\Sales\Model\Order\StatusFactory;
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;
Expand Down Expand Up @@ -103,9 +102,4 @@ public static function getDependencies(): array
{
return [];
}

public static function getVersion(): string
{
return '9.0.3';
}
}
10 changes: 1 addition & 9 deletions Setup/Patch/Data/CreditCardsBecomeCards.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -65,12 +65,4 @@ public static function getDependencies()
{
return [];
}

/**
* @inheritDoc
*/
public static function getVersion()
{
return '9.0.5';
}
}
8 changes: 1 addition & 7 deletions Setup/Patch/Data/RatepayIdConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -96,9 +95,4 @@ public static function getDependencies(): array
{
return [];
}

public static function getVersion(): string
{
return '9.0.0';
}
}
15 changes: 1 addition & 14 deletions Setup/Patch/Data/RemoveMinMaxOrderConfigMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -67,12 +62,4 @@ public static function getDependencies()
{
return [];
}

/**
* @inheritDoc
*/
public static function getVersion()
{
return '9.0.0';
}
}

0 comments on commit 0dd9aa7

Please sign in to comment.