<?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 Version20211212175503 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 professional_profile DROP FOREIGN KEY FK_E728A82260F371C');
$this->addSql('DROP INDEX IDX_E728A82260F371C ON professional_profile');
$this->addSql('ALTER TABLE professional_profile DROP socio_category_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE professional_profile ADD socio_category_id INT NOT NULL');
$this->addSql('ALTER TABLE professional_profile ADD CONSTRAINT FK_E728A82260F371C FOREIGN KEY (socio_category_id) REFERENCES socio_professional_category (id)');
$this->addSql('CREATE INDEX IDX_E728A82260F371C ON professional_profile (socio_category_id)');
}
}