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; + } }