From c7dd52cbaedd055c5bdb9a297caa77c60f5badfc Mon Sep 17 00:00:00 2001 From: Jelle Besseling Date: Sun, 19 May 2024 17:37:45 +0200 Subject: [PATCH] Remove uneeded join table and generate missing migration --- migrations/Version20240519153645.php | 31 ++++++++++++++++++++++++++++ src/Entity/Member.php | 1 - 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 migrations/Version20240519153645.php diff --git a/migrations/Version20240519153645.php b/migrations/Version20240519153645.php new file mode 100644 index 0000000..c895424 --- /dev/null +++ b/migrations/Version20240519153645.php @@ -0,0 +1,31 @@ +addSql('ALTER TABLE admin_member_revision CHANGE email email VARCHAR(200) DEFAULT NULL'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE admin_member_revision CHANGE email email VARCHAR(200) NOT NULL'); + } +} diff --git a/src/Entity/Member.php b/src/Entity/Member.php index 6ecd17a..1d33f5c 100644 --- a/src/Entity/Member.php +++ b/src/Entity/Member.php @@ -94,7 +94,6 @@ class Member implements UserInterface { /** * @ORM\ManyToMany(targetEntity="Division", inversedBy="contacts") - * @ORM\JoinTable(name="division_member") */ private Collection $managed_divisions;