feat: add hintType and hintData columns to GameRow entity
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
33
migrations/Version20260330203017.php
Normal file
33
migrations/Version20260330203017.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DoctrineMigrations;
|
||||
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
use Doctrine\Migrations\AbstractMigration;
|
||||
|
||||
/**
|
||||
* Auto-generated Migration: Please modify to your needs!
|
||||
*/
|
||||
final class Version20260330203017 extends AbstractMigration
|
||||
{
|
||||
public function getDescription(): string
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
public function up(Schema $schema): void
|
||||
{
|
||||
// this up() migration is auto-generated, please modify it to your needs
|
||||
$this->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');
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user