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