migrations/common/Version20240710_AttributePeriod.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 Version20240710_AttributePeriod 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("ALTER TABLE merchant_attribute ADD date_from DATETIME DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)', ADD date_to DATETIME DEFAULT NULL COMMENT '(DC2Type:datetime_immutable)';");
  14.     }
  15.     public function down(Schema $schema): void
  16.     {
  17.     }
  18. }