<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20241023024203 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("
UPDATE plg_amazon_pay_v2_config SET private_key_path = :new_private_key_path WHERE private_key_path = :old_private_key_path",
[
'new_private_key_path'=>'app/PluginData/AmazonPayV2_42/privateKey.ut.pem',
'old_private_key_path'=>'app/PluginData/AmazonPayV2/privateKey.ut.pem',
]
);
}
public function down(Schema $schema): void
{
$this->addSql("
UPDATE plg_amazon_pay_v2_config SET private_key_path = :new_private_key_path WHERE private_key_path = :old_private_key_path",
[
'new_private_key_path'=>'app/PluginData/AmazonPayV2/privateKey.ut.pem',
'old_private_key_path'=>'app/PluginData/AmazonPayV2_42/privateKey.ut.pem',
]
);
}
}