migrations/Version20220331074715.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 Version20220331074715 extends AbstractMigration
  10. {
  11.     public function getDescription(): string {
  12.         return '';
  13.     }
  14.     public function up(Schema $schema): void {
  15.         // this up() migration is auto-generated, please modify it to your needs
  16.         $this->addSql('delete from channel_layout_type');
  17.         $this->addSql('INSERT INTO channel_layout_type (term,category,css_class) VALUES (\'imageFirst\',\'campaigns_mobile\',\'vchfy_campaigns_layout_mobile_first\')');
  18.         $this->addSql('INSERT INTO channel_layout_type (term,category,css_class) VALUES (\'imageLast\',\'campaigns_mobile\',\'vchfy_campaigns_layout_mobile_last\')');
  19.         $this->addSql('INSERT INTO channel_layout_type (term,category,css_class) VALUES (\'imagesRight\',\'campaigns_desktop\',\'vchfy_campaigns_layout_desktop_right\')');
  20.         $this->addSql('INSERT INTO channel_layout_type (term,category,css_class) VALUES (\'imagesLeft\',\'campaigns_desktop\',\'vchfy_campaigns_layout_desktop_left\')');
  21.         $this->addSql('INSERT INTO channel_layout_type (term,category,css_class) VALUES (\'imagesSwitching\',\'campaigns_desktop\',\'vchfy_campaigns_layout_desktop_switching\')');
  22.         $this->addSql('INSERT INTO channel_layout_type (term,category,css_class) VALUES (\'headerFirst\',\'mobile\',\'vchfy_layout_mobile_first\')');
  23.         $this->addSql('INSERT INTO channel_layout_type (term,category,css_class) VALUES (\'headerLast\',\'mobile\',\'vchfy_layout_mobile_last\')');
  24.         $this->addSql('INSERT INTO channel_layout_type (term,category,css_class) VALUES (\'headerFirst\',\'desktop\',\'vchfy_layout_desktop_first\')');
  25.         $this->addSql('INSERT INTO channel_layout_type (term,category,css_class) VALUES (\'headerLast\',\'desktop\',\'vchfy_layout_desktop_last\')');
  26.     }
  27.     public function down(Schema $schema): void {
  28.         // this down() migration is auto-generated, please modify it to your needs
  29.     }
  30.     public function isTransactional(): bool {
  31.         return false;
  32.     }
  33. }