feat: Saisons um Runden-Verwaltung erweitern
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
parent
55e03541ff
commit
f852da3570
4 changed files with 73 additions and 9 deletions
|
|
@ -25,4 +25,17 @@ class Round {
|
|||
$stmt->execute([$seasonId]);
|
||||
return $stmt->fetchAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* Aktualisiert den Namen einer Runde.
|
||||
*
|
||||
* @param int $id
|
||||
* @param string $name
|
||||
* @return bool
|
||||
*/
|
||||
public static function updateName($id, $name) {
|
||||
$db = Database::getConnection();
|
||||
$stmt = $db->prepare("UPDATE rounds SET name = ?, updated_at = NOW() WHERE id = ?");
|
||||
return $stmt->execute([$name, $id]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue