<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* DATEPICKER webpackEntry
*/
final class Version20210409124248 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
$this->addSql("
SET @id_block = (select id from `std_blocks` WHERE machine_name = 'form_date');
UPDATE `std_blocks` SET `settings`='{\"webpackEntries\": [\"daterangepicker\"]}' WHERE `id`=@id_block;
");
}
public function down(Schema $schema) : void
{
$this->addSql("
SET @id_block = (select id from `std_blocks` WHERE machine_name = 'form_date');
UPDATE `std_blocks` SET `settings`=NULL WHERE `id`=@id_block;
");
}
}