Files
e-cosplay/migrations/Version20251122185520.php
Serreau Jovann a3dc9f5801 ```
 feat(templates/cota.twig): Ajoute template pour confirmation cotisation
 feat(templates/admin/dashboard.twig): Affiche stats membres et commandes
🐛 fix(src/Controller/WebhooksController.php): Gère paiement et reçu cotisation
 feat(src/Service/Payments/PaymentClient.php): Ajoute paiement cotisation
 feat(.env): Met à jour URL de dev
 feat(src/Controller/Admin/AdminController.php): Ajoute validation et lien paiement
 feat(src/Controller/DonsController.php): Ajoute route validation cotisation
 feat(assets/admin.js): Ajoute assets admin
 feat(templates/form_admin.twig): Ajoute thème formulaire admin
 feat(assets/admin.scss): Ajoute style admin
 feat(src/Service/Pdf/CotaReceiptGenerator.php): Génère reçu de cotisation
 feat(src/Form/MembersType.php): Ajoute champs et options formulaire membre
 feat(templates/admin/base.twig): Ajoute base admin
 feat(templates/admin/member/add.twig): Ajoute template ajout/édition membre
 feat(src/Entity/Members.php): Ajoute champs et relations entité Membre
 feat(templates/admin/members.twig): Affiche liste membres
 feat(templates/mails/coti_payment.twig): Ajoute template mail paiement cotisation
 feat(src/Controller/MembersController.php): Filtre membres actifs
 feat(templates/mails/cota_validation.twig): Ajoute template mail validation cota
```
2025-11-22 20:36:20 +01:00

38 lines
1.6 KiB
PHP

<?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 Version20251122185520 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 members_cotisations (id SERIAL NOT NULL, members_id INT DEFAULT NULL, startd_ate TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, end_date TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, amount DOUBLE PRECISION DEFAULT NULL, is_paid BOOLEAN NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_C7D1EB64BD01F5ED ON members_cotisations (members_id)');
$this->addSql('COMMENT ON COLUMN members_cotisations.startd_ate IS \'(DC2Type:datetime_immutable)\'');
$this->addSql('COMMENT ON COLUMN members_cotisations.end_date IS \'(DC2Type:datetime_immutable)\'');
$this->addSql('ALTER TABLE members_cotisations ADD CONSTRAINT FK_C7D1EB64BD01F5ED FOREIGN KEY (members_id) REFERENCES members (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 members_cotisations DROP CONSTRAINT FK_C7D1EB64BD01F5ED');
$this->addSql('DROP TABLE members_cotisations');
}
}