<?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 Version20210630154620 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql("UPDATE std_blocks SET `settings` = JSON_MERGE_PRESERVE(settings, '{\"isCacheable\":false}') WHERE machine_name IN('web_users_addresses','web_users_detail','web_users_password','register_web_users', 'login');");
}
public function down(Schema $schema) : void
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql("UPDATE std_blocks SET `settings` = JSON_REMOVE(settings, '$.isCacheable') WHERE machine_name IN('web_users_addresses','web_users_detail','web_users_password','register_web_users', 'login');");
}
}