feat(EsyWebController): Ajoute création et affichage de sites internet
Ce commit implémente l'ajout et la visualisation des sites internet. Il inclut la gestion de formulaires, l'enregistrement en base de données, et l'affichage des détails.
This commit is contained in:
36
migrations/Version20251017075007.php
Normal file
36
migrations/Version20251017075007.php
Normal 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 Version20251017075007 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 website ADD revendeur_id INT DEFAULT NULL');
|
||||
$this->addSql('ALTER TABLE website ADD CONSTRAINT FK_476F5DE7F4218D56 FOREIGN KEY (revendeur_id) REFERENCES revendeur (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
|
||||
$this->addSql('CREATE INDEX IDX_476F5DE7F4218D56 ON website (revendeur_id)');
|
||||
}
|
||||
|
||||
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 website DROP CONSTRAINT FK_476F5DE7F4218D56');
|
||||
$this->addSql('DROP INDEX IDX_476F5DE7F4218D56');
|
||||
$this->addSql('ALTER TABLE website DROP revendeur_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user