<?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 Version20220221182009 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 eckinox_app_reset_password_requests DROP selector, DROP hashed_token, DROP requested_at, DROP expires_at');
$this->addSql('ALTER TABLE eckinox_reset_password_requests DROP selector, DROP hashed_token, DROP requested_at, DROP expires_at');
$this->addSql('ALTER TABLE mallette_file_notification DROP FOREIGN KEY FK_E6314BFD19EB6921');
$this->addSql('DROP INDEX IDX_E6314BFD19EB6921 ON mallette_file_notification');
$this->addSql('ALTER TABLE mallette_file_notification DROP client_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE eckinox_app_reset_password_requests ADD selector VARCHAR(20) NOT NULL, ADD hashed_token VARCHAR(100) NOT NULL, ADD requested_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', ADD expires_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
$this->addSql('ALTER TABLE eckinox_reset_password_requests ADD selector VARCHAR(20) NOT NULL, ADD hashed_token VARCHAR(100) NOT NULL, ADD requested_at DATETIME NOT NULL, ADD expires_at DATETIME NOT NULL');
$this->addSql('ALTER TABLE mallette_file_notification ADD client_id INT NOT NULL');
$this->addSql('ALTER TABLE mallette_file_notification ADD CONSTRAINT FK_E6314BFD19EB6921 FOREIGN KEY (client_id) REFERENCES mallette_client (id) ON UPDATE NO ACTION ON DELETE NO ACTION');
$this->addSql('CREATE INDEX IDX_E6314BFD19EB6921 ON mallette_file_notification (client_id)');
}
public function isTransactional(): bool
{
return false;
}
}