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 = [];