<?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 Version20200925134004 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 pmc DROP CONSTRAINT fk_af58944ac916c8e9');
$this->addSql('DROP INDEX idx_af58944ac916c8e9');
$this->addSql('ALTER TABLE pmc DROP dvfs_id');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE pmc ADD dvfs_id INT NOT NULL');
$this->addSql('ALTER TABLE pmc ADD CONSTRAINT fk_af58944ac916c8e9 FOREIGN KEY (dvfs_id) REFERENCES dvf (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('CREATE INDEX idx_af58944ac916c8e9 ON pmc (dvfs_id)');
}
}