migrations/Version20220613040926.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 Version20220613040926 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->addSql('ALTER TABLE home ADD detail_show TINYINT(1) DEFAULT 0 NOT NULL AFTER banner');
  19.         $this->addSql('ALTER TABLE home ADD detail_items LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\' AFTER detail_show');
  20.         $this->addSql('ALTER TABLE home DROP detail_vw_show, DROP detail_vw_image, DROP detail_vw_logo, DROP detail_vw_link, DROP detail_vw_target, DROP detail_man_show, DROP detail_man_image, DROP detail_man_logo, DROP detail_man_link, DROP detail_man_target, DROP detail_network_show, DROP detail_network_image, DROP detail_network_title, DROP detail_network_link, DROP detail_network_target, DROP detail_information_show, DROP detail_information_image, DROP detail_information_title, DROP detail_information_link, DROP detail_information_target');
  21.     }
  22.     public function down(Schema $schema): void
  23.     {
  24.         // this down() migration is auto-generated, please modify it to your needs
  25.         $this->addSql('ALTER TABLE home ADD detail_vw_logo LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', ADD detail_vw_link VARCHAR(255) DEFAULT NULL, ADD detail_vw_target TINYINT(1) DEFAULT 0 NOT NULL, ADD detail_man_show TINYINT(1) DEFAULT 0 NOT NULL, ADD detail_man_image LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', ADD detail_man_logo LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', ADD detail_man_link VARCHAR(255) DEFAULT NULL, ADD detail_man_target TINYINT(1) DEFAULT 0 NOT NULL, ADD detail_network_show TINYINT(1) DEFAULT 0 NOT NULL, ADD detail_network_image LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', ADD detail_network_title VARCHAR(255) DEFAULT NULL, ADD detail_network_link VARCHAR(255) DEFAULT NULL, ADD detail_network_target TINYINT(1) DEFAULT 0 NOT NULL, ADD detail_information_show TINYINT(1) DEFAULT 0 NOT NULL, ADD detail_information_image LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', ADD detail_information_title VARCHAR(255) DEFAULT NULL, ADD detail_information_link VARCHAR(255) DEFAULT NULL, ADD detail_information_target TINYINT(1) DEFAULT 0 NOT NULL, CHANGE detail_show detail_vw_show TINYINT(1) DEFAULT 0 NOT NULL, CHANGE detail_items detail_vw_image LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\'');
  26.     }
  27. }