mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
prevend duplicates upload by md5 file check #11
This commit is contained in:
parent
bd772f87d1
commit
1f7d8d0810
3 changed files with 35 additions and 0 deletions
|
|
@ -28,6 +28,9 @@ class Torrent
|
|||
#[ORM\Column]
|
||||
private ?bool $approved = null;
|
||||
|
||||
#[ORM\Column(length: 32)]
|
||||
private ?string $md5file = null;
|
||||
|
||||
#[ORM\Column(type: Types::TEXT, nullable: true)]
|
||||
private ?string $keywords = null;
|
||||
|
||||
|
|
@ -88,6 +91,18 @@ class Torrent
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getMd5file(): ?string
|
||||
{
|
||||
return $this->md5file;
|
||||
}
|
||||
|
||||
public function setMd5file(string $md5file): static
|
||||
{
|
||||
$this->md5file = $md5file;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getKeywords(): ?string
|
||||
{
|
||||
return $this->keywords;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue