<?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 Version20220831203145 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 lead_recruitment_request DROP CONSTRAINT FK_144526743414710B');
$this->addSql('ALTER TABLE lead_recruitment_request ADD CONSTRAINT FK_144526743414710B FOREIGN KEY (agent_id) REFERENCES agent (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
}
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 lead_recruitment_request DROP CONSTRAINT fk_144526743414710b');
$this->addSql('ALTER TABLE lead_recruitment_request ADD CONSTRAINT fk_144526743414710b FOREIGN KEY (agent_id) REFERENCES manager (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
}
}