diff --git a/schema.sql b/schema.sql index 5e45cce..e6b0eac 100644 --- a/schema.sql +++ b/schema.sql @@ -530,7 +530,7 @@ SELECT attacker, victim, json_objectagg (attacker_class:count) AS by_class, - sum(count) AS total + sum(count)::BIGINT AS total FROM grouped_drop_kills GROUP BY diff --git a/src/database.rs b/src/database.rs index 653dff6..56108e1 100644 --- a/src/database.rs +++ b/src/database.rs @@ -28,7 +28,7 @@ pub async fn store_log( log.info.map, log.info.map_type() as MapType, log.info.date() as DateTime, - 2 + crate::VERSION, ) .execute(&mut *tx) .await?;