<?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 Version20210803101330 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 @block_id=(SELECT id FROM std_blocks WHERE machine_name='login');
UPDATE `std_blocks` SET `settings`='{\"isCacheable\": false, \"isWebUsersLogin\": true, \"webpackEntries\": [\"login_page\"]}' WHERE `id`=@block_id;
INSERT INTO `std_blocks_settings` (`machine_name`, `block_id`, `created_by`, `updated_by`, `name`, `setting_type`, `is_active`, `created_date`, `updated_date`, `order_value`, `settings`) VALUES
('separador_styles', @block_id, '1', '1', 'Styles', 'SEPARADOR', '1', now(), now(), '1', NULL),
('extra_block_id', @block_id, '1', '1', 'Block ID', 'INPUT', '1', now(), now(), '2', NULL),
('extra_class', @block_id, '1', '1', 'Extra Class', 'INPUT', '1', now(), now(), '3', NULL),
('separador_spacings', @block_id, '1', '1', 'Spacings', 'SEPARADOR', '1', now(), now(), '4', NULL),
('margin', @block_id, '1', '1', 'Margin [0px 0px 0px 0px]', 'INPUT', '1', now(), now(), '5', NULL),
('padding', @block_id, '1', '1', 'Padding [0px 0px 0px 0px]', 'INPUT', '1', now(), now(), '6', NULL);
");
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("
SET @block_id=(SELECT id FROM std_blocks WHERE machine_name='login');
UPDATE `std_blocks` SET `settings`='{\"isCacheable\": false, \"isWebUsersLogin\": true}' WHERE `id`=@block_id;
");
}
}