mclog2psql: store duration as unsigned bigint
This commit is contained in:
@@ -88,7 +88,7 @@ def insert_sessions_into_db(
|
||||
CREATE TABLE IF NOT EXISTS "minecraft_login_sessions"(
|
||||
"username" TEXT NOT NULL,
|
||||
"start" TIMESTAMP NOT NULL,
|
||||
"duration" INTEGER NOT NULL,
|
||||
"duration" BIGINT NOT NULL CHECK (duration >= 0),
|
||||
PRIMARY KEY ("username", "start")
|
||||
)
|
||||
""")
|
||||
|
||||
Reference in New Issue
Block a user