From e3ee26e070217b92215cfa28268b4ce75d646f47 Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Mon, 30 Mar 2026 22:30:30 +0200 Subject: [PATCH] feat: add hintType and hintData columns to GameRow entity Co-Authored-By: Claude Sonnet 4.6 --- migrations/Version20260330203017.php | 33 ++++++++++++++++++++++++++++ src/Entity/GameRow.php | 30 +++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 migrations/Version20260330203017.php diff --git a/migrations/Version20260330203017.php b/migrations/Version20260330203017.php new file mode 100644 index 0000000..2f01a29 --- /dev/null +++ b/migrations/Version20260330203017.php @@ -0,0 +1,33 @@ +addSql('ALTER TABLE game_row ADD hint_type VARCHAR(20) DEFAULT NULL'); + $this->addSql('ALTER TABLE game_row ADD hint_data VARCHAR(255) DEFAULT NULL'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE game_row DROP hint_type'); + $this->addSql('ALTER TABLE game_row DROP hint_data'); + } +} diff --git a/src/Entity/GameRow.php b/src/Entity/GameRow.php index a1643f3..5b66fda 100644 --- a/src/Entity/GameRow.php +++ b/src/Entity/GameRow.php @@ -29,6 +29,12 @@ class GameRow #[ORM\Column] private int $rowOrder; + #[ORM\Column(length: 20, nullable: true)] + private ?string $hintType = null; + + #[ORM\Column(length: 255, nullable: true)] + private ?string $hintData = null; + public function getId(): ?int { return $this->id; @@ -81,4 +87,28 @@ class GameRow return $this; } + + public function getHintType(): ?string + { + return $this->hintType; + } + + public function setHintType(string $hintType): static + { + $this->hintType = $hintType; + + return $this; + } + + public function getHintData(): ?string + { + return $this->hintData; + } + + public function setHintData(string $hintData): static + { + $this->hintData = $hintData; + + return $this; + } }