From 7219330bbe0fdefd292f7b90cce18b5286a2d756 Mon Sep 17 00:00:00 2001 From: g0ldyy <153996346+g0ldyy@users.noreply.github.com> Date: Tue, 30 Dec 2025 17:40:22 +0100 Subject: [PATCH] fix: update digital_release_cache.release_date column type to BIGINT --- comet/core/database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comet/core/database.py b/comet/core/database.py index 9f0b046..c31afa7 100644 --- a/comet/core/database.py +++ b/comet/core/database.py @@ -294,10 +294,10 @@ async def setup_database(): ) await database.execute( - f""" + """ CREATE TABLE IF NOT EXISTS bandwidth_stats ( id INTEGER PRIMARY KEY, - total_bytes {"INTEGER" if settings.DATABASE_TYPE == "sqlite" else "BIGINT"}, + total_bytes BIGINT, last_updated INTEGER ) """ @@ -365,7 +365,7 @@ async def setup_database(): """ CREATE TABLE IF NOT EXISTS digital_release_cache ( media_id TEXT PRIMARY KEY, - release_date INTEGER, + release_date BIGINT, timestamp INTEGER ) """