diff --git a/app/DoctrineMigrations/Version20230729100654.php b/app/DoctrineMigrations/Version20230729100654.php new file mode 100644 index 000000000..2757a1aac --- /dev/null +++ b/app/DoctrineMigrations/Version20230729100654.php @@ -0,0 +1,38 @@ +abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); + + $this->addSql('ALTER TABLE membership ADD flying TINYINT(1) DEFAULT \'0\' NOT NULL'); + $this->addSql('UPDATE membership LEFT OUTER JOIN beneficiary ON beneficiary.id = membership.main_beneficiary_id SET membership.flying=beneficiary.flying WHERE beneficiary.flying = 1'); + $this->addSql('ALTER TABLE beneficiary DROP flying'); + } + + public function down(Schema $schema) : void + { + // this down() migration is auto-generated, please modify it to your needs + $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); + + $this->addSql('ALTER TABLE beneficiary ADD flying TINYINT(1) DEFAULT \'0\' NOT NULL'); + $this->addSql('ALTER TABLE membership DROP flying'); + } +} diff --git a/app/Resources/views/beneficiary/_partial/info.html.twig b/app/Resources/views/beneficiary/_partial/info.html.twig index bdf7c0637..78764e5da 100644 --- a/app/Resources/views/beneficiary/_partial/info.html.twig +++ b/app/Resources/views/beneficiary/_partial/info.html.twig @@ -61,16 +61,6 @@ {% endif %}) {% endif %} - {% if use_fly_and_fixed %} -
- Compte fermé le {{ member.withdrawnDate | date_fr }} - {% if member.withdrawnBy %} - par {% include "admin/member/_partial/member_or_user_link.html.twig" with { user: member.withdrawnBy, target_blank: true } %}. - {% endif %} -
- {% endif %} - - checkRé-ouvrir le compte - - {{ form_start(open_form) }} -