<?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 Version20250217090736 extends AbstractMigration
{
const PLG_ZEUS_PAYMENT_CONFIG_ID = 1; // 1: (固定)
public function getDescription(): string
{
return 'ZEUSプラグインの設定 “3Dセキュア” を ON/OFF します。';
}
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
/**
* 1 of 1 - UPDATE `plg_zeus_payment_config`.
*/
$sql = "UPDATE
plg_zeus_payment_config
SET
secure3dflg = :secure3dflg
WHERE
id = :id";
$params = [
'id' => self::PLG_ZEUS_PAYMENT_CONFIG_ID,
'secure3dflg' => 1,
];
$this->addSql($sql, $params);
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
/**
* 1 of 1 - UPDATE `plg_zeus_payment_config`.
*/
$sql = "UPDATE
plg_zeus_payment_config
SET
secure3dflg = :secure3dflg
WHERE
id = :id";
$params = [
'id' => self::PLG_ZEUS_PAYMENT_CONFIG_ID,
'secure3dflg' => 0,
];
$this->addSql($sql, $params);
}
}