migrations/Version20220117164955.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 Version20220117164955 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("update `std_blocks` set `settings`='{\"isCacheable\": false,\"isFormList\": true}'  where `machine_name`='submitted_forms_list' ;");
  19.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}'  where `machine_name`='form_input' ;");
  20.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false,\"webpackEntries\": [\"submitform\"]}'  where `machine_name`='form_submit' ;");
  21.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}'  where `machine_name`='form_email' ;");
  22.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}'  where `machine_name`='form_textarea' ;");
  23.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}'  where `machine_name`='form_number' ;");
  24.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}'  where `machine_name`='form_checkbox' ;");
  25.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}'  where `machine_name`='form_select' ;");
  26.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false,\"webpackEntries\": [\"fileform\"]}'  where `machine_name`='form_file' ;");
  27.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false,\"isFormDomain\": \"true\"}'  where `machine_name`='form_domain' ;");
  28.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false,\"webpackEntries\": [\"daterangepicker\"]}'  where `machine_name`='form_date' ;");
  29.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false,\"isFormStatus\": \"true\"}'  where `machine_name`='form_status' ;");
  30.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false,\"isFormMessages\": \"true\"}'  where `machine_name`='form_messages' ;");
  31.         $this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}'  where `machine_name`='form_radio' ;");
  32.     }
  33.     public function down(Schema $schema) : void
  34.     {
  35.         // this down() migration is auto-generated, please modify it to your needs
  36.         $this->addSql("update `std_blocks` set `settings`='{\"isFormList\": true}'  where `machine_name`='submitted_forms_list' ;");
  37.         $this->addSql("update `std_blocks` set `settings`=NULL  where `machine_name`='form_input' ;");
  38.         $this->addSql("update `std_blocks` set `settings`='{\"webpackEntries\": [\"submitform\"]}'  where `machine_name`='form_submit' ;");
  39.         $this->addSql("update `std_blocks` set `settings`=NULL  where `machine_name`='form_email' ;");
  40.         $this->addSql("update `std_blocks` set `settings`=NULL  where `machine_name`='form_textarea' ;");
  41.         $this->addSql("update `std_blocks` set `settings`=NULL  where `machine_name`='form_number' ;");
  42.         $this->addSql("update `std_blocks` set `settings`=NULL  where `machine_name`='form_checkbox' ;");
  43.         $this->addSql("update `std_blocks` set `settings`=NULL  where `machine_name`='form_select' ;");
  44.         $this->addSql("update `std_blocks` set `settings`='{\"webpackEntries\": [\"fileform\"]}'  where `machine_name`='form_file' ;");
  45.         $this->addSql("update `std_blocks` set `settings`='{\"isFormDomain\": \"true\"}'  where `machine_name`='form_domain' ;");
  46.         $this->addSql("update `std_blocks` set `settings`='{\"webpackEntries\": [\"daterangepicker\"]}'  where `machine_name`='form_date' ;");
  47.         $this->addSql("update `std_blocks` set `settings`='{\"isFormStatus\": \"true\"}'  where `machine_name`='form_status' ;");
  48.         $this->addSql("update `std_blocks` set `settings`='{\"isFormMessages\": \"true\"}'  where `machine_name`='form_messages' ;");
  49.         $this->addSql("update `std_blocks` set `settings`=NULL  where `machine_name`='form_radio' ;");
  50.         
  51.     }
  52. }