app/DoctrineMigrations/Version20250217090736.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20250217090736 extends AbstractMigration
  10. {
  11.     const PLG_ZEUS_PAYMENT_CONFIG_ID 1;   // 1: (固定)
  12.     public function getDescription(): string
  13.     {
  14.         return 'ZEUSプラグインの設定 “3Dセキュア” を ON/OFF します。';
  15.     }
  16.     public function up(Schema $schema) : void
  17.     {
  18.         // this up() migration is auto-generated, please modify it to your needs
  19.         /**
  20.          * 1 of 1 - UPDATE `plg_zeus_payment_config`.
  21.          */
  22.         $sql "UPDATE
  23.                     plg_zeus_payment_config
  24.                 SET
  25.                     secure3dflg = :secure3dflg
  26.                 WHERE
  27.                     id = :id";
  28.         $params = [
  29.             'id' => self::PLG_ZEUS_PAYMENT_CONFIG_ID,
  30.             'secure3dflg' => 1,
  31.         ];
  32.         $this->addSql($sql$params);
  33.     }
  34.     public function down(Schema $schema) : void
  35.     {
  36.         // this down() migration is auto-generated, please modify it to your needs
  37.         /**
  38.          * 1 of 1 - UPDATE `plg_zeus_payment_config`.
  39.          */
  40.         $sql "UPDATE
  41.                     plg_zeus_payment_config
  42.                 SET
  43.                     secure3dflg = :secure3dflg
  44.                 WHERE
  45.                     id = :id";
  46.         $params = [
  47.             'id' => self::PLG_ZEUS_PAYMENT_CONFIG_ID,
  48.             'secure3dflg' => 0,
  49.         ];
  50.         $this->addSql($sql$params);
  51.     }
  52. }