From f39b5648503c8c4714d228249b7706d193ba3a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 10 Jan 2025 17:19:31 +0100 Subject: [PATCH] chore: remove obsolete property from user entity --- migrations/Version20250110161832.php | 31 ++++++++++++++++++++++++++++ src/Entity/User.php | 3 --- 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 migrations/Version20250110161832.php diff --git a/migrations/Version20250110161832.php b/migrations/Version20250110161832.php new file mode 100644 index 0000000..533fac5 --- /dev/null +++ b/migrations/Version20250110161832.php @@ -0,0 +1,31 @@ +addSql('ALTER TABLE user DROP hotel_code'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE user ADD hotel_code VARCHAR(32) DEFAULT NULL'); + } +} diff --git a/src/Entity/User.php b/src/Entity/User.php index a9c0295..1cc207e 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -51,9 +51,6 @@ class User implements UserInterface, TimestampableEntityInterface #[ORM\OneToOne(inversedBy: 'user', cascade: ['all'])] private ?Contact $contact = null; - #[ORM\Column(length: 32, nullable: true)] - private ?string $hotelCode = null; - #[ORM\Column(type: 'json')] private array $hotelCodes = [];