<?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 Version20220119185822 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
$this->addSql("
SET @block_id=(SELECT id FROM std_blocks WHERE machine_name='B30_mosaic');
UPDATE `std_blocks_components` SET `settings`='{\"ckeditor\": \"b30\"}' WHERE `block_id`=@block_id AND `machine_name`='text';
");
}
public function down(Schema $schema) : void
{
$this->addSql("
SET @block_id=(SELECT id FROM std_blocks WHERE machine_name='B30_mosaic');
UPDATE `std_blocks_components` SET `settings`=NULL WHERE `block_id`=@block_id AND `machine_name`='text';
");
}
}