<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220613040926 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE home ADD detail_show TINYINT(1) DEFAULT 0 NOT NULL AFTER banner');
$this->addSql('ALTER TABLE home ADD detail_items LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\' AFTER detail_show');
$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');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$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)\'');
}
}