<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
final class Version20221011152225 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 mallette_file_notification DROP FOREIGN KEY FK_E6314BFDA76ED395');
$this->addSql('ALTER TABLE mallette_file_notification ADD CONSTRAINT FK_E6314BFDA76ED395 FOREIGN KEY (user_id) REFERENCES eckinox_app_users (id) ON DELETE SET NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE mallette_file_notification DROP FOREIGN KEY FK_E6314BFDA76ED395');
$this->addSql('ALTER TABLE mallette_file_notification ADD CONSTRAINT FK_E6314BFDA76ED395 FOREIGN KEY (user_id) REFERENCES eckinox_app_users (id) ON UPDATE NO ACTION ON DELETE NO ACTION');
}
public function isTransactional(): bool
{
return false;
}
}