feat: Saisons um Runden-Verwaltung erweitern

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
torsten 2026-10-04 18:02:53 +02:00
parent 55e03541ff
commit f852da3570
4 changed files with 73 additions and 9 deletions

View file

@ -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]);
}
}