mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
add long description field
This commit is contained in:
parent
e750dac85d
commit
c5eef6751d
8 changed files with 68 additions and 25 deletions
|
|
@ -641,6 +641,17 @@ class Database {
|
|||
return $query->rowCount();
|
||||
}
|
||||
|
||||
public function updateMagnetDescription(int $magnetId, string $description, int $timeUpdated) : int {
|
||||
|
||||
$this->_debug->query->update->total++;
|
||||
|
||||
$query = $this->_db->prepare('UPDATE `magnet` SET `description` = ?, `timeUpdated` = ? WHERE `magnetId` = ?');
|
||||
|
||||
$query->execute([$description, $timeUpdated, $magnetId]);
|
||||
|
||||
return $query->rowCount();
|
||||
}
|
||||
|
||||
public function updateMagnetPublic(int $magnetId, bool $public, int $timeUpdated) : int {
|
||||
|
||||
$this->_debug->query->update->total++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue