```
✨ 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 ```
This commit is contained in:
35
migrations/Version20251122180336.php
Normal file
35
migrations/Version20251122180336.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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 Version20251122180336 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 members ADD joined_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL');
|
||||
$this->addSql('ALTER TABLE members ADD status VARCHAR(255) DEFAULT NULL');
|
||||
$this->addSql('COMMENT ON COLUMN members.joined_at IS \'(DC2Type:datetime_immutable)\'');
|
||||
}
|
||||
|
||||
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 DROP joined_at');
|
||||
$this->addSql('ALTER TABLE members DROP status');
|
||||
}
|
||||
}
|
||||
37
migrations/Version20251122185520.php
Normal file
37
migrations/Version20251122185520.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
32
migrations/Version20251122185748.php
Normal file
32
migrations/Version20251122185748.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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 Version20251122185748 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 members ADD email VARCHAR(255) DEFAULT NULL');
|
||||
}
|
||||
|
||||
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 DROP email');
|
||||
}
|
||||
}
|
||||
32
migrations/Version20251122190432.php
Normal file
32
migrations/Version20251122190432.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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 Version20251122190432 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 members_cotisations ADD payment_id VARCHAR(255) DEFAULT NULL');
|
||||
}
|
||||
|
||||
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 payment_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user