<?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 Version20210412121217 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->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql("UPDATE `std_blocks` SET `name`='Input de pesquisa' WHERE `machine_name`='B50_search';");
$this->addSql("UPDATE `std_blocks` SET `name`='Resultados de pesquisa' WHERE `machine_name`='B51_search_results';");
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql("UPDATE `std_blocks` SET `name`='Search' WHERE `machine_name`='B50_search';");
$this->addSql("UPDATE `std_blocks` SET `name`='Results' WHERE `machine_name`='B51_search_results';");
}
}