<?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 Version20220914202054 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 request_modification ADD request_modification_status_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE request_modification ADD CONSTRAINT FK_F44E7C0A8BF8CFBD FOREIGN KEY (request_modification_status_id) REFERENCES request_modification_status (id)');
$this->addSql('CREATE INDEX IDX_F44E7C0A8BF8CFBD ON request_modification (request_modification_status_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE request_modification DROP FOREIGN KEY FK_F44E7C0A8BF8CFBD');
$this->addSql('DROP INDEX IDX_F44E7C0A8BF8CFBD ON request_modification');
$this->addSql('ALTER TABLE request_modification DROP request_modification_status_id');
}
}