mclog2psql: store duration as unsigned bigint

This commit is contained in:
2025-12-22 19:58:45 +09:00
parent 83760b1ebc
commit 03ef47638d

View File

@@ -88,7 +88,7 @@ def insert_sessions_into_db(
CREATE TABLE IF NOT EXISTS "minecraft_login_sessions"( CREATE TABLE IF NOT EXISTS "minecraft_login_sessions"(
"username" TEXT NOT NULL, "username" TEXT NOT NULL,
"start" TIMESTAMP NOT NULL, "start" TIMESTAMP NOT NULL,
"duration" INTEGER NOT NULL, "duration" BIGINT NOT NULL CHECK (duration >= 0),
PRIMARY KEY ("username", "start") PRIMARY KEY ("username", "start")
) )
""") """)