migrations/common/Version20220722_MerchantAttribute.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 Version20220722_MerchantAttribute extends AbstractMigration
  6. {
  7.     public function getDescription(): string
  8.     {
  9.         return 'Merchant attributes types';
  10.     }
  11.     public function up(Schema $schema): void
  12.     {
  13.         $this->addSql("
  14.             ALTER TABLE merchant_attribute
  15.                 MODIFY COLUMN attribute ENUM('pro_features', 'approve_zero', 'notando_integration') NOT NULL COMMENT '(DC2Type:merchant_attribute)';"
  16.         );
  17.         $this->addSql("
  18.             ALTER TABLE merchant_attribute_history
  19.                 MODIFY COLUMN attribute ENUM('pro_features', 'approve_zero', 'notando_integration') NOT NULL COMMENT '(DC2Type:merchant_attribute)';"
  20.         );
  21.     }
  22.     public function down(Schema $schema): void
  23.     {
  24.     }
  25. }