<?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 Version20220110161759 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
$this->addSql("
UPDATE `std_config` SET `label`='Scripts Header' WHERE `machine_name`='scripts_header' AND `language_code`='pt';
UPDATE `std_config` SET `label`='Scripts Header' WHERE `machine_name`='scripts_header' AND `language_code`='en';
UPDATE `std_config` SET `label`='Scripts Body' WHERE `machine_name`='scripts_body' AND `language_code`='pt';
UPDATE `std_config` SET `label`='Scripts Body' WHERE `machine_name`='scripts_body' AND `language_code`='en';
UPDATE `std_config` SET `label`='Scripts Footer' WHERE `machine_name`='scripts_footer' AND `language_code`='pt';
UPDATE `std_config` SET `label`='Scripts Footer' WHERE `machine_name`='scripts_footer' AND `language_code`='en';
");
$this->addSql("
SET @block_id=(SELECT id FROM std_blocks WHERE machine_name='B06_image_text');
UPDATE `std_blocks_skins` SET `machine_name`='columns_3', `name`='3 columns' WHERE `block_id`=@block_id AND `machine_name`='text_image50';
");
$this->addSql("
SET @block_id=(SELECT id FROM std_blocks WHERE machine_name='B01_slideshow');
INSERT IGNORE 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
('carousel_dots', @block_id, 1, 1, 'Dots', 'CHECKBOX', 1, now(), now(), 1, NULL),
('carousel_arrows', @block_id, 1, 1, 'Arrows', 'CHECKBOX', 1, now(), now(), 1, NULL);
");
$this->addSql("
DELETE FROM `std_content_types_skins` WHERE `content_type_id`=5 AND `machine_name`='render_form';
");
$this->addSql("
SET @id_block=(SELECT id FROM std_blocks WHERE machine_name='B02_title');
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
('disabled_block', @id_block, 1, 1, 'Disabled block', 'CHECKBOX', 1, now(), now(), -1, NULL);
SET @id_block=(SELECT id FROM std_blocks WHERE machine_name='B03_text');
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
('disabled_block', @id_block, 1, 1, 'Disabled block', 'CHECKBOX', 1, now(), now(), -1, NULL);
SET @id_block=(SELECT id FROM std_blocks WHERE machine_name='B11_html');
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
('disabled_block', @id_block, 1, 1, 'Disabled block', 'CHECKBOX', 1, now(), now(), -1, NULL);
SET @id_block=(SELECT id FROM std_blocks WHERE machine_name='B06_image_text');
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
('disabled_block', @id_block, 1, 1, 'Disabled block', 'CHECKBOX', 1, now(), now(), -1, NULL);
");
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
}
}