<?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 Version20221121203942 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 bus ADD gallery_items JSON NOT NULL, ADD characteristics_show TINYINT(1) DEFAULT 1 NOT NULL, ADD characteristics_items JSON NOT NULL, ADD description_show TINYINT(1) DEFAULT 1 NOT NULL, ADD description_title VARCHAR(255) DEFAULT NULL, ADD description_text LONGTEXT DEFAULT NULL, ADD applications_show TINYINT(1) DEFAULT 1 NOT NULL, ADD applications_text LONGTEXT DEFAULT NULL, ADD applications_items JSON NOT NULL, ADD attributes_show TINYINT(1) DEFAULT 1 NOT NULL, ADD attributes_items JSON NOT NULL, ADD technical_datasheet_show TINYINT(1) DEFAULT 1 NOT NULL, ADD technical_datasheet_items JSON NOT NULL, ADD technical_datasheet_file JSON NOT NULL, ADD additional_show TINYINT(1) DEFAULT 0 NOT NULL, ADD additional_title VARCHAR(255) DEFAULT NULL, ADD additional_items JSON NOT NULL, CHANGE link link VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE bus DROP gallery_items, DROP characteristics_show, DROP characteristics_items, DROP description_show, DROP description_title, DROP description_text, DROP applications_show, DROP applications_text, DROP applications_items, DROP attributes_show, DROP attributes_items, DROP technical_datasheet_show, DROP technical_datasheet_items, DROP technical_datasheet_file, DROP additional_show, DROP additional_title, DROP additional_items, CHANGE link link VARCHAR(255) NOT NULL');
}
}