<?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 Version20211002175335 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("
SET @content_id=(SELECT id FROM std_content_types WHERE machine_name='pages_categories');
INSERT INTO `std_content_types_skins` (`content_type_id`, `machine_name`, `name`, `is_active`, `created_by`, `created_date`, `updated_by`, `updated_date`) VALUES (@content_id, 'pages_list', 'Page List', 1, 1, '2021-10-01 16:20:18', 1, '2021-10-01 16:20:20');
");
$this->addSql("
SET @block_id=(SELECT id FROM std_blocks WHERE machine_name='block_list');
INSERT INTO `std_blocks_skins` (`block_id`, `machine_name`, `name`, `is_active`, `created_by`, `created_date`, `updated_by`, `updated_date`) VALUES (@block_id, 'pages_list', 'Pages List', 1, 1, '2021-10-01 16:18:41', 1, '2021-10-01 16:18:42');
");
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("
SET @content_id=(SELECT id FROM std_content_types WHERE machine_name='pages_categories');
delete from `std_content_types_skins` where `content_type_id`=@content_id and `machine_name`='pages_list';
");
$this->addSql("
SET @block_id=(SELECT id FROM std_blocks WHERE machine_name='block_list');
delete from `std_blocks_skins` where `block_id`=@block_id and `machine_name`='pages_list';
");
}
}