mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
rename magnet meta fields
This commit is contained in:
parent
14ee992930
commit
55ee0d86d8
10 changed files with 70 additions and 70 deletions
|
|
@ -694,24 +694,24 @@ class Database {
|
|||
return $query->rowCount();
|
||||
}
|
||||
|
||||
public function updateMagnetMetaTitle(int $magnetId, string $metaTitle, int $timeUpdated) : int {
|
||||
public function updateMagnetTitle(int $magnetId, string $title, int $timeUpdated) : int {
|
||||
|
||||
$this->_debug->query->update->total++;
|
||||
|
||||
$query = $this->_db->prepare('UPDATE `magnet` SET `metaTitle` = ?, `timeUpdated` = ? WHERE `magnetId` = ?');
|
||||
$query = $this->_db->prepare('UPDATE `magnet` SET `title` = ?, `timeUpdated` = ? WHERE `magnetId` = ?');
|
||||
|
||||
$query->execute([$metaTitle, $timeUpdated, $magnetId]);
|
||||
$query->execute([$title, $timeUpdated, $magnetId]);
|
||||
|
||||
return $query->rowCount();
|
||||
}
|
||||
|
||||
public function updateMagnetMetaDescription(int $magnetId, string $metaDescription, int $timeUpdated) : int {
|
||||
public function updateMagnetPreview(int $magnetId, string $preview, int $timeUpdated) : int {
|
||||
|
||||
$this->_debug->query->update->total++;
|
||||
|
||||
$query = $this->_db->prepare('UPDATE `magnet` SET `metaDescription` = ?, `timeUpdated` = ? WHERE `magnetId` = ?');
|
||||
$query = $this->_db->prepare('UPDATE `magnet` SET `preview` = ?, `timeUpdated` = ? WHERE `magnetId` = ?');
|
||||
|
||||
$query->execute([$metaDescription, $timeUpdated, $magnetId]);
|
||||
$query->execute([$preview, $timeUpdated, $magnetId]);
|
||||
|
||||
return $query->rowCount();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue