migrations/Version20220320050033.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 Version20220320050033 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 "user" DROP CONSTRAINT FK_8D93D64988C5CA0A');
$this->addSql('ALTER TABLE "user" ADD CONSTRAINT FK_8D93D64988C5CA0A FOREIGN KEY (lexicon_id) REFERENCES lexicon (id) ON DELETE SET NULL NOT DEFERRABLE INITIALLY IMMEDIATE');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE "user" DROP CONSTRAINT fk_8d93d64988c5ca0a');
$this->addSql('ALTER TABLE "user" ADD CONSTRAINT fk_8d93d64988c5ca0a FOREIGN KEY (lexicon_id) REFERENCES lexicon (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
}
}