migrations/Version20221121203942.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 Version20221121203942 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 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');
  19.     }
  20.     public function down(Schema $schema): void
  21.     {
  22.         // this down() migration is auto-generated, please modify it to your needs
  23.         $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');
  24.     }
  25. }