<?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 Version20200127104112 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('ALTER TABLE nutrition_program CHANGE start_text `start_text` LONGTEXT DEFAULT NULL, CHANGE end_text `end_text` LONGTEXT DEFAULT NULL');
$this->addSql('ALTER TABLE training_program CHANGE start_text `start_text` LONGTEXT DEFAULT NULL, CHANGE end_text `end_text` LONGTEXT DEFAULT NULL');
$this->addSql('ALTER TABLE media CHANGE product_category_id `product_category_id` LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:simple_array)\'');
}
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('ALTER TABLE media CHANGE `product_category_id` product_category_id LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:array)\'');
$this->addSql('ALTER TABLE nutrition_program CHANGE `start_text` start_text VARCHAR(8000) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE `end_text` end_text VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE training_program CHANGE `start_text` start_text VARCHAR(8000) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE `end_text` end_text VARCHAR(8000) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
}
}