Add migration to include site_name column in cities table

This commit is contained in:
hamed
2026-07-02 10:09:14 +03:30
parent a7d5d17b9c
commit 70d280070b
21 changed files with 1062 additions and 814 deletions
+6
View File
@@ -24,6 +24,9 @@ class City
#[ORM\Column(type: 'string', length: 255)]
private string $name;
#[ORM\Column(name: 'site_name', type: 'string', length: 255, nullable: true)]
private ?string $siteName = null;
#[ORM\Column(type: 'smallint')]
private int $status = 1;
@@ -74,6 +77,7 @@ class City
public function getId(): ?int { return $this->id; }
public function getUuid(): string { return $this->uuid; }
public function getName(): string { return $this->name; }
public function getSiteName(): ?string { return $this->siteName; }
public function getStatus(): int { return $this->status; }
public function getWeight(): int { return $this->weight; }
public function getProvince(): ?Province { return $this->province; }
@@ -89,6 +93,7 @@ class City
public function getLogoUrl(): ?string { return $this->logoUrl; }
public function setName(string $v): self { $this->name = $v; return $this; }
public function setSiteName(?string $v): self { $this->siteName = $v; return $this; }
public function setStatus(int $v): self { $this->status = $v; return $this; }
public function setWeight(int $v): self { $this->weight = $v; return $this; }
public function setProvince(?Province $v): self { $this->province = $v; return $this; }
@@ -109,6 +114,7 @@ class City
'id' => $this->id,
'uuid' => $this->uuid,
'name' => $this->name,
'site_name' => $this->siteName,
'status' => $this->status,
'weight' => $this->weight,
'province_id' => $this->province?->getId(),