migrations/Version20210224112841.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 Version20210224112841 extends AbstractMigration
  10. {
  11.     public function getDescription() : string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema) : void
  16.     {
  17.         $this->addSql("UPDATE `std_config` SET label = 'Descrição' WHERE machine_name = 'default_meta_description'");
  18.         $this->addSql("UPDATE `std_config` SET label = 'Palavras-chave' WHERE machine_name = 'default_meta_keywords'");
  19.         $this->addSql("UPDATE `std_config` SET label = 'Titulo' WHERE machine_name = 'default_meta_title'");
  20.         $this->addSql("UPDATE `std_config` SET label = 'Imagem' WHERE machine_name = 'image_config'");
  21.     
  22.     
  23.         $this->addSql("UPDATE `std_blocks_components` SET name ='B02_title'  WHERE block_id =(select id from std_blocks where machine_name = 'B02_title')  and machine_name ='title'");
  24.         $this->addSql("UPDATE `std_blocks_components` SET name ='B03_text'  WHERE block_id =(select id from std_blocks where machine_name = 'B03_text')  and machine_name ='text'");
  25.         $this->addSql("UPDATE `std_blocks_components` SET name ='B11_html' WHERE block_id =(select id from std_blocks where machine_name = 'B11_html')  and machine_name ='html_code'");
  26.         $this->addSql("UPDATE `std_blocks_components` SET name ='B17_author' WHERE block_id =(select id from std_blocks where machine_name = 'B17_testimonials')  and machine_name ='author'");
  27.         $this->addSql("UPDATE `std_blocks_components` SET name ='B17_image' WHERE block_id =(select id from std_blocks where machine_name = 'B17_testimonials') and machine_name ='item_image'");
  28.         $this->addSql("UPDATE `std_blocks_components` SET name ='B17_quote' WHERE block_id =(select id from std_blocks where machine_name = 'B17_testimonials')  and machine_name ='quote'");
  29.         $this->addSql("UPDATE `std_blocks_components` SET name ='B19_btn_label' WHERE block_id =(select id from std_blocks where machine_name = 'B19_cta')  and machine_name ='btn_label'");
  30.         $this->addSql("UPDATE `std_blocks_components` SET name ='B19_btn_target' WHERE block_id =(select id from std_blocks where machine_name = 'B19_cta')  and machine_name ='btn_target'");
  31.         $this->addSql("UPDATE `std_blocks_components` SET name ='B19_message' WHERE block_id =(select id from std_blocks where machine_name = 'B19_cta')  and machine_name ='message'");
  32.         $this->addSql("UPDATE `std_blocks_components` SET name ='B19_url' WHERE block_id =(select id from std_blocks where machine_name = 'B19_cta')  and machine_name ='url'");
  33.     
  34.     }
  35.     public function down(Schema $schema) : void
  36.     {
  37.     }
  38. }