add long description field

This commit is contained in:
ghost 2023-08-30 19:38:04 +03:00
parent e750dac85d
commit c5eef6751d
8 changed files with 68 additions and 25 deletions

View file

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