<?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 Version20220208154443 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='B06_image_text');
UPDATE `std_blocks` SET `settings`='{\"webpackEntries\": [\"image_text\",\"slick-carousel\"]}' WHERE `id`=@block_id;
INSERT INTO `std_blocks_skins` (`block_id`, `machine_name`, `name`, `is_active`, `created_by`, `created_date`, `updated_by`, `updated_date`) VALUES
(@block_id, 'highlight_carousel', 'Highlight carousel', 1, 1, now(), 1, now());
");
}
public function down(Schema $schema) : void
{
$this->addSql("
SET @block_id=(SELECT id FROM std_blocks WHERE machine_name='B06_image_text');
UPDATE `std_blocks` SET `settings`='{\"webpackEntries\": [\"image_text\"]}' WHERE `id`=@block_id;
DELETE FROM `std_blocks_skins` WHERE `machine_name` = 'highlight_carousel' AND `block_id`= @block_id;
");
}
}