<?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 Version20230418153407 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('CREATE TABLE notificacion_adjunto (id INT AUTO_INCREMENT NOT NULL, notificacion_id INT NOT NULL, id_view CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', sso_usuario VARCHAR(180) NOT NULL, fecha_hora_alta DATETIME NOT NULL, descripcion VARCHAR(255) DEFAULT NULL, url_adjunto VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_152242F475DDB78C (id_view), INDEX IDX_152242F44D633FC4 (notificacion_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE notificacion_adjunto ADD CONSTRAINT FK_152242F44D633FC4 FOREIGN KEY (notificacion_id) REFERENCES notificacion (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE notificacion_adjunto');
}
}