<?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 Version20200807150524 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("delete from std_content_types_blocks where content_type=(select id from std_content_types where machine_name='pages') and block_id=(select id from std_blocks where machine_name='block_hotspot')");
$this->addSql("delete from std_content_types_blocks where content_type=(select id from std_content_types where machine_name='pages_categories') and block_id=(select id from std_blocks where machine_name='block_hotspot')");
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("INSERT INTO `std_content_types_blocks` (`content_type`, `block_id`) VALUES ((SELECT id FROM std_content_types WHERE machine_name='pages'), (SELECT id FROM std_blocks WHERE machine_name='block_hotspot'));");
$this->addSql("INSERT INTO `std_content_types_blocks` (`content_type`, `block_id`) VALUES ((SELECT id FROM std_content_types WHERE machine_name='pages_categories'), (SELECT id FROM std_blocks WHERE machine_name='block_hotspot'));");
}
}