<?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 Version20241031091755 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('ALTER TABLE partner ADD title_ua VARCHAR(255) NOT NULL, ADD title_fr VARCHAR(255) NOT NULL, ADD title_pl VARCHAR(255) NOT NULL, ADD title_de VARCHAR(255) NOT NULL, ADD regions_ua VARCHAR(255) DEFAULT NULL, ADD regions_fr VARCHAR(255) DEFAULT NULL, ADD regions_pl VARCHAR(255) DEFAULT NULL, ADD regions_de VARCHAR(255) DEFAULT NULL, ADD description_ua LONGTEXT DEFAULT NULL, ADD description_fr LONGTEXT DEFAULT NULL, ADD description_pl LONGTEXT DEFAULT NULL, ADD description_de LONGTEXT DEFAULT NULL, CHANGE title title_en VARCHAR(255) NOT NULL, CHANGE regions regions_en VARCHAR(255) DEFAULT NULL, CHANGE description description_en LONGTEXT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE partner ADD title VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, ADD regions VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, ADD description LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, DROP title_en, DROP title_ua, DROP title_fr, DROP title_pl, DROP title_de, DROP regions_en, DROP regions_ua, DROP regions_fr, DROP regions_pl, DROP regions_de, DROP description_en, DROP description_ua, DROP description_fr, DROP description_pl, DROP description_de');
}
}