src/Migrations/Version20201124125212.php line 1
<?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 Version20201124125212 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 scholar_profile ADD region_id INT DEFAULT NULL, ADD city VARCHAR(255) DEFAULT NULL, ADD achievements_other LONGTEXT DEFAULT NULL, CHANGE about additional_info LONGTEXT DEFAULT NULL');
$this->addSql('ALTER TABLE scholar_profile ADD CONSTRAINT FK_14FBF77398260155 FOREIGN KEY (region_id) REFERENCES federal_region (id)');
$this->addSql('CREATE INDEX IDX_14FBF77398260155 ON scholar_profile (region_id)');
$this->addSql('ALTER TABLE subscribe_subscription ADD page_description 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 scholar_profile DROP FOREIGN KEY FK_14FBF77398260155');
$this->addSql('DROP INDEX IDX_14FBF77398260155 ON scholar_profile');
$this->addSql('ALTER TABLE scholar_profile ADD about LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, DROP region_id, DROP additional_info, DROP city, DROP achievements_other');
$this->addSql('ALTER TABLE subscribe_subscription DROP page_description');
}
}