feat(nnd.twig): Ajoute un lien vers la page des emails du NDD.

🐛 fix(BackupCommand): Corrige un problème de suppression de fichier SQL.

 feat(CustomerDns.php): Ajoute la relation avec les emails du NDD.

 feat(email.twig): Crée le template pour afficher les emails du NDD.

 feat(CustomerController.php): Récupère les emails du NDD.
This commit is contained in:
Serreau Jovann
2025-09-27 13:08:41 +02:00
parent 3f7ad5a90f
commit f3e5ff5c20
8 changed files with 246 additions and 2 deletions

View File

@@ -0,0 +1,36 @@
<?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 Version20250927110817 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 customer_dns_email (id SERIAL NOT NULL, dns_id INT DEFAULT NULL, email VARCHAR(255) NOT NULL, password TEXT DEFAULT NULL, create_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, storage VARCHAR(255) NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_88F27568E42F3693 ON customer_dns_email (dns_id)');
$this->addSql('COMMENT ON COLUMN customer_dns_email.create_at IS \'(DC2Type:datetime_immutable)\'');
$this->addSql('ALTER TABLE customer_dns_email ADD CONSTRAINT FK_88F27568E42F3693 FOREIGN KEY (dns_id) REFERENCES customer_dns (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE customer_dns_email DROP CONSTRAINT FK_88F27568E42F3693');
$this->addSql('DROP TABLE customer_dns_email');
}
}