migrations/common/Version20241105_AddMerchantFields.php line 1

Open in your IDE?
  1. <?php
  2. namespace App\Migrations\Common;
  3. use Doctrine\DBAL\Schema\Schema;
  4. use Doctrine\Migrations\AbstractMigration;
  5. class Version20241105_AddMerchantFields extends AbstractMigration
  6. {
  7.     public function getDescription(): string
  8.     {
  9.         return 'Add period to merchant attributes';
  10.     }
  11.     public function up(Schema $schema): void
  12.     {
  13.         $this->addSql("
  14.             ALTER TABLE merchant 
  15.             ADD registration_datetime DATETIME NOT NULL COMMENT '(DC2Type:datetime_immutable)', 
  16.             ADD block_datetime DATETIME DEFAULT NULL, 
  17.             ADD activation_datetime DATETIME NOT NULL;
  18.         ");
  19.     }
  20.     public function down(Schema $schema): void
  21.     {
  22.     }
  23. }