<?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 Version20220117164955 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("update `std_blocks` set `settings`='{\"isCacheable\": false,\"isFormList\": true}' where `machine_name`='submitted_forms_list' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}' where `machine_name`='form_input' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false,\"webpackEntries\": [\"submitform\"]}' where `machine_name`='form_submit' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}' where `machine_name`='form_email' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}' where `machine_name`='form_textarea' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}' where `machine_name`='form_number' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}' where `machine_name`='form_checkbox' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}' where `machine_name`='form_select' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false,\"webpackEntries\": [\"fileform\"]}' where `machine_name`='form_file' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false,\"isFormDomain\": \"true\"}' where `machine_name`='form_domain' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false,\"webpackEntries\": [\"daterangepicker\"]}' where `machine_name`='form_date' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false,\"isFormStatus\": \"true\"}' where `machine_name`='form_status' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false,\"isFormMessages\": \"true\"}' where `machine_name`='form_messages' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isCacheable\": false}' where `machine_name`='form_radio' ;");
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("update `std_blocks` set `settings`='{\"isFormList\": true}' where `machine_name`='submitted_forms_list' ;");
$this->addSql("update `std_blocks` set `settings`=NULL where `machine_name`='form_input' ;");
$this->addSql("update `std_blocks` set `settings`='{\"webpackEntries\": [\"submitform\"]}' where `machine_name`='form_submit' ;");
$this->addSql("update `std_blocks` set `settings`=NULL where `machine_name`='form_email' ;");
$this->addSql("update `std_blocks` set `settings`=NULL where `machine_name`='form_textarea' ;");
$this->addSql("update `std_blocks` set `settings`=NULL where `machine_name`='form_number' ;");
$this->addSql("update `std_blocks` set `settings`=NULL where `machine_name`='form_checkbox' ;");
$this->addSql("update `std_blocks` set `settings`=NULL where `machine_name`='form_select' ;");
$this->addSql("update `std_blocks` set `settings`='{\"webpackEntries\": [\"fileform\"]}' where `machine_name`='form_file' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isFormDomain\": \"true\"}' where `machine_name`='form_domain' ;");
$this->addSql("update `std_blocks` set `settings`='{\"webpackEntries\": [\"daterangepicker\"]}' where `machine_name`='form_date' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isFormStatus\": \"true\"}' where `machine_name`='form_status' ;");
$this->addSql("update `std_blocks` set `settings`='{\"isFormMessages\": \"true\"}' where `machine_name`='form_messages' ;");
$this->addSql("update `std_blocks` set `settings`=NULL where `machine_name`='form_radio' ;");
}
}